Validation layers crash when compiling a shader that uses a specialization constant value as an array size. Program works fine when validation is turned off. It's the exact problem reported here: https://github.com/KhronosGroup/Vulkan-ValidationLayers/issues/6370 The issue shows as fixed, so it's probably fixed on next release. Reproducible: Always Steps to Reproduce: 1. Run the test code with validation layers enabled Actual Results: The program crashes inside validation layers: Thread 1 "vvl-crash" received signal SIGSEGV, Segmentation fault. Instruction::GetConstantValue (this=0x0) at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp:74 74 /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp: No existe el fichero o el directorio. (gdb) bt full #0 Instruction::GetConstantValue (this=0x0) at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_instruction.cpp:74 No locals. #1 0x00007fffec2f2673 in SPIRV_MODULE_STATE::GetConstantValueById (id=<optimized out>, this=0x555556977390) at /var/tmp/portage/media-libs/vulkan-layers-1.3.261/work/Vulkan-ValidationLayers-sdk-1.3.261.0/layers/state_tracker/shader_module.cpp:1144 value = <optimized out> (...) Expected Results: No crashes or errors
Created attachment 873507 [details] emerge --info Test code for the crash is on the bug URL
Seems like it should be fixed in the next sdk release, but upstream doesn't know which PR fixed it.