upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/loader_test.cpp
diff options
context:
space:
mode:
authorTim Elery <timelery@gmail.com>2026-11-22 10:00:07 -0800
committerTim Elery <timelery@gmail.com>2026-11-22 10:00:07 -0800
commit10e310fcced49dd8168437b74c891753d465890d (patch)
tree482943cd6dee898c1e6851aeaf0ad60b674ddbdf /runtime/test/loader_test.cpp
parent49475796c226c8511b9470bf97a4daf57b8af323 (diff)
translator: preserve MUBUF DST_SEL=1 on out-of-bounds typed buffer loads (SHADER-429)
On RDNA2 hardware (gfx1036, 746 native kernels via tools/hw_oracle across wave32 and wave64), out-of-bounds MUBUF buffer_load_format_{x,xy,xyz,xyzw} and buffer_load_format_d16_{x,xy,xyz,xyzw} skip memory access and decode raw data channels (DST_SEL 4..7) as 0 while V# DST_SEL still runs: DST_SEL=1 yields 1.0f (0x3F800000, d16 0x3C00) iff V# FORMAT[6:0] is a valid float, normalized, or scaled code (1..77 ending in _UNORM/_SNORM/_USCALED/_SSCALED/_FLOAT), and integer 1 (0x00000001, d16 0x0001) for UINT/SINT, INVALID (0), and reserved codes (78..127). MTBUF tbuffer_load_format_* ignores V# DST_SEL and returns 0 in addressed channels when OOB or V# FORMAT=0. Remove the post-swizzle in_b clamp in Gen.buffer_load_format and classify float vs integer DST_SEL=1 from the 7-bit GFX10 format table. AI-assisted.
Diffstat (limited to 'runtime/test/loader_test.cpp')
0 files changed, 0 insertions, 0 deletions