AGC: since #639, devices without mesh shaders (SPIR-V 1.3 target) get modules that fail validation #2138
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by tezzgod74 on 2026-10-09T09:52:48Z.
Since #639, a device without mesh shaders gets recompiled modules that fail SPIR-V validation.
VulkanDevicetargets SPIR-V 1.3 whenmeshShaderis off and 1.4 when it is on (VulkanDevice.cpp), and the new code emits instructions that are only valid from 1.4. On an AMD RDNA 2 iGPU (mesh=0), 10 execution tests fail. The RDNA 4 dGPU in the same machine (mesh=1) passes all of them.Most fail on a vector
OpSelectwith a scalar condition, which SPIR-V 1.3 rejects. This is the same class #574 fixed for the bindless table hit:agc_driver_prepared_graphicsfails on the version check instead:agc_driver_image_address_dimensionOpSelectconditionagc_driver_image_byOpSelectcondition (test added after #639)agc_driver_image_converted_unormOpSelectconditionagc_driver_image_sample_reductionOpSelectconditionagc_driver_image_sint8OpSelectconditionagc_driver_image_srgb_loadOpSelectconditionagc_driver_image_store_sintOpSelectconditionagc_driver_image_xor_swizzle_volumeOpSelectconditionagc_driver_typed_heapsOpSelectconditionagc_driver_prepared_graphicsBisected with
agc_driver_image_sint8on the iGPU, first parent only from79d23eb7(passes): first bad is the #639 merge23941235. Its first parent2b297842passes. The commits inside #639 can't be bisected: most don't build on their own, and the earliest that do fail this test for other reasons. The full RequestSerializer dumps from the failing runs are available if useful.CI doesn't see this. Its lavapipe device and the GPUs used for #639 appear to expose mesh shaders, so every run targets 1.4. The failures only show with
ANYPS5_ENABLE_SPIRV_TOOLS=ON. Without validation, the invalid modules would reach the driver.ANYPS5_GPURadeon(TM) GraphicsRX 9060Environment:
mainatf1451396, Release,-DANYPS5_ENABLE_SPIRV_TOOLS=ON, MinGW-w64 GCC 15.2.0 (WinLibs r7), Windows 11 Pro 10.0.26300.Reproduce