Repository navigation
fix(shader): v_mov_b32 SDWA writes byte destinations - #499
oneandonlydean merged 1 commit into
Conversation
v_mov_b32 accepted SDWA destination selectors for the words only; a byte destination (dst_sel BYTE_0..3) threw 'VOP1 SDWA destination selector is not supported'. The write itself already handles bytes and every dst_unused mode (TranslationContext::writeRawU32). GTA V aborted during boot on such a move (dst_sel BYTE_0, dst_unused UNUSED_PRESERVE) in one of its eboot compute shaders. The error now names the selector, opcode and pc. The SDWA destination execution test covers BYTE_0 and BYTE_2 with UNUSED_PRESERVE and BYTE_1 with UNUSED_PAD. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
|
Thanks, this is the right fix. Byte destinations already go through
Optional, not blocking: with a byte destination, |
What
v_mov_b32accepted SDWA destination selectors for the two words only. A byte destination (dst_selBYTE_0..3) threwVOP1 SDWA destination selector is not supported. GTA V (PPSA04264) aborted during boot on such a move in one of its eboot compute shaders:v_mov_b32_sdwawithdst_sel:BYTE_0 dst_unused:UNUSED_PRESERVE src0_sel:DWORD. The compute recompile failure reached presentation, which terminates.The write itself already handles byte destinations and every
dst_unusedmode (TranslationContext::writeRawU32, which other VOP1 conversions use for bytes). So the rule table now allows byte destinations forv_mov_b32too, with the same source selectors as before. The error message now names the destination selector,dst_unused, the source selector, the opcode and the pc.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
agc_driver_sdwa_destinationnow also runsv_mov_b32_sdwawith BYTE_0 and BYTE_2 under UNUSED_PRESERVE, and BYTE_1 under UNUSED_PAD, and checks each result byte. It passes on the GPU.ctest: everything that passes onmainhere passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository🤖 Generated with Claude Code