upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/src
diff options
context:
space:
mode:
authorTomgamer <tomanhorak22@gmail.com>2026-11-22 17:01:45 +0100
committerTomgamer <tomanhorak22@gmail.com>2026-11-22 17:01:45 +0100
commitce7a34850e5e69bbb86f5955b37356d92d4bd90c (patch)
tree3d6b3773682aa6f3f19bb08fb0c23d7283bc3d24 /runtime/src
parenteb35aed2e7e8ea1d4a11fd4e42ab80d853f05169 (diff)
SHADER-309: bounds-check LDS past the RSRC2 allocation
RDNA2 LDS does not wrap: an access outside the allocation reads 0 and its write is dropped (ISA 3.6.1, 3.6.6). The wrapped array aliased such an access onto a valid word (review on #1882). When a program's constant offsets reach past its RSRC2 allocation, or the array is shrunk to fit the cap, the array is now the allocation and Gen.lds_access checks every dword of every LDS access kind (reads, writes, sub-dword, read2/write2, atomics, cmpst, wrxchg): out of range a read or an atomic's old value is 0 and the write is skipped. Other shaders keep the wrapped power-of-two array with no check. The constant-offset need is now exact (offset + access width) instead of offset + 4 dwords. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src')
0 files changed, 0 insertions, 0 deletions