Repository navigation
fix(shader): splat the bindless table hit into a bool vector for SPIR-V 1.3 - #574
Conversation
…-V 1.3 TableResult selected a uvec4 with a scalar bool condition, which needs SPIR-V 1.4. Targets at 1.3 failed validation (agc_shader_memory with ANYPS5_ENABLE_SPIRV_TOOLS). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks. A scalar condition on a vector There's no new test, since Ready to merge from my side once CI has run (it still needs approval). |
…IR-V 1.3 The FMASK identity read selected a uvec4 with a scalar bool condition, which needs SPIR-V 1.4. Devices without mesh shaders target 1.3, so every image test that reaches the path failed validation with ANYPS5_ENABLE_SPIRV_TOOLS (#2138), as in #574. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What
TableResult(bindless image tables) emittedOpSelect %v4uint <scalar bool> .... A scalar condition on a vector select is only valid from SPIR-V 1.4, and the recompiler also accepts 1.3 targets (the emitter default, and the targetagc_shader_memoryuses). With-DANYPS5_ENABLE_SPIRV_TOOLS=ONthe test failed:The condition is now built into a
bvec4withOpCompositeConstructfirst. This is valid in every SPIR-V version and gives the same result.Tested
Windows 11, MinGW GCC 15.2.0 r7, NVIDIA Vulkan,
-DANYPS5_ENABLE_SPIRV_TOOLS=ON:agc_shader_memorynow passes, and the fullctestrun passes 213/213.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 (attach them to this PR)🤖 Generated with Claude Code