Files
mandy/tests/semantic/fixtures/sdwa_bary_input.asm
Vonsek 4e710cf7eb fix(shader): read incoming VGPRs for preserving SDWA writes
A byte or word insert consumes the old destination when its other bits are preserved. Discovering that input lets a fragment retain the untouched bits of its incoming interpolation weights.
2026-11-22 19:48:29 +01:00

8 lines
324 B
NASM

; For I=0.25 and J=0.5, expect MRT0 words 3e8000ab 3f00abcd 3e8000ab 3f00abcd.
v_mov_b32 v4, 0xab
v_mov_b32 v5, 0xabcd
v_mov_b32_sdwa v0, v4 dst_sel:BYTE_0 dst_unused:UNUSED_PRESERVE src0_sel:DWORD
v_mov_b32_sdwa v1, v5 dst_sel:WORD_0 dst_unused:UNUSED_PRESERVE src0_sel:DWORD
exp mrt0 v0, v1, v0, v1 done vm
s_endpgm