upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorNotRexed <therealnothingfn@gmail.com>2026-11-29 02:21:03 -0500
committerNotRexed <therealnothingfn@gmail.com>2026-11-29 02:21:03 -0500
commit21633b328027376634649a957d7f0b56efed4aca (patch)
treec92653fb54d18b60f47b26f2fe1fd615b01ca582 /runtime/test/tiny_game_exit_code_test.cpp
parente4973b5db6d0b036808a3dfd115edcfd442ab4c3 (diff)
Shader translator: LDS past a program's own allocation is dropped, as on the console
A console program's LDS operations were taken as in bounds, so a read or write past the program's allocation reached the words the translator keeps after it (the halves' counter, the wave64 exchange, the thread ticket), a packed neighbour group's slice, or past the end of the host array. Now every access is checked against the program's own dwords (Shader::program_lds_dwords): outside, a read gives 0 and a write or atomic is dropped, as the console does. LEONIDA_LDS_BOUNDS=0 restores the old shortcut. After D33T0X/Native-Runtime 733b7cc and 745db9a (its xlate crate, GPL-3.0-or-later, VIctory's translator): there a wave64 program clearing 4,096 bytes of its 3,300 wrote into the translator's exchange and its shadow tile counts came out as other data. Test lds_accesses_past_the_allocation_are_dropped_and_read_zero (64 threads, 512 bytes of LDS) passes on the RTX 4060 Ti. Three game runs on it (2026-11-29, Series X, dynamic resolution): the same three programs refused as before, no device removal, frames as before (in-world phases 55-70 ms). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions