diff options
| author | sanuk369 <224479491+quackottu@users.noreply.github.com> | 2026-11-22 11:58:53 +0530 |
|---|---|---|
| committer | sanuk369 <224479491+quackottu@users.noreply.github.com> | 2026-11-22 11:58:53 +0530 |
| commit | cd0e009c229c0eaaad056c7b1f1317215e5e3e02 (patch) | |
| tree | a670b88d4984fcbe11f360f3e1eee159c5d23641 /runtime/test/gameinput_test.cpp | |
| parent | 43d470316ec6cbcd64002bc3792998d9f5745dac (diff) | |
rdna2spirv: image_store writes the dmask components it names, not the first n
image_store counted the dmask bits and filled texel components 0..n-1, so
dmask:0x4 wrote vD to red instead of blue and dmask:0x9 wrote vD+1 to
green instead of alpha. The RDNA2 MIMG DMASK rule (its example: 1001 ->
R = VGPRn, A = VGPRn+1), LLVM's image.store and this translator's own
image_load and sample paths take the enabled components from consecutive
VGPRs in component order; docs/design.md's "Typed image stores" row says
the same. The GPU tests only used dmask 0xf, which is why nothing caught it.
tests/semantic/test_image_store_dmask.py checks dmask 0xf, 0x3, 0x4 and
0x9 in the float, uint and sint views.
Diffstat (limited to 'runtime/test/gameinput_test.cpp')
0 files changed, 0 insertions, 0 deletions