mirror of
https://github.com/ProjectLeonida/mandy.git
synced 2026-12-06 21:18:38 +00:00
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.
8 lines
324 B
NASM
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
|