mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-21 12:29:43 -10:00
The unsized uniform-buffer fixture uses a Vulkan extension added after the system standalone validator. Running it through the old Vulkan 1.0 profile rejects a legal Uniform/Block runtime array. Its std430 layout also needs the standard uniform-buffer layout feature enabled during independent validation. Use a pinned current SPIRV-Tools validator and matching headers in a dedicated cached CI job. Keep Vulkan 1.0 for ordinary fixtures and Vulkan 1.1 for subgroup operations; apply the extension fixture's required rules only to that module. Do not skip incompatible-validator failures or relax other shaders' checks. Deliberately misalign a member of the emitted UBO and require its rejection. Validation: all 40 emitted SPIR-V modules pass current standalone validation; the corrupted UBO fails alignment validation. Extended compiler and builder contracts pass ASan/UBSan, and all five emitted GLSL programs pass glslang. The pinned setup helper passes cold-source and cached-build runs. No production shader compiler or device-feature admission is changed.