You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[SPIR-V] DXC SPIR-V test fail with the latest spir-v tools #8740
Check out the latest DXC source.
Update the submodule using the top-of-tree SPIR-V tools.
Run the codegenspirv tests.
There are two failures. Here is the output of one of them:
FAIL: Clang :: CodeGenSPIRV/resource-heap-ext-texture.hlsl (829 of 1566)
******************** TEST 'Clang :: CodeGenSPIRV/resource-heap-ext-texture.hlsl' FAILED ********************
Script:
--
/tmp/dxc/build/./bin/dxc -T cs_6_6 -E main -fspv-use-descriptor-heap -spirv /tmp/dxc/tools/clang/test/CodeGenSPIRV/resource-heap-ext-texture.hlsl | /tmp/dxc/build/./bin/FileCheck /tmp/dxc/tools/clang/test/CodeGenSPIRV/resource-heap-ext-texture.hlsl
--
Exit Code: 2
Command Output (stderr):
--
...
fatal error: generated SPIR-V is invalid: Array must be explicitly laid out with ArrayStride or ArrayStrideIdEXT decorations. Instantiated via '36[%36]' in the UniformConstant storage class using standard layout rules.
This is may be allowed if you enable the scalarBlockLayout feature (or use the --scalar-block-layout command line flag)
%_runtimearr_type_2d_image = OpTypeRuntimeArray %type_2d_image
note: please file a bug report on https://github.com/Microsoft/DirectXShaderCompiler/issues with source code if possible
FileCheck error: '-' is empty.
Activity
[-][SPIR-V][/-][+][SPIR-V] DXC SPIR-V test fail with the latest spir-v tools[/+]dnovillo commentedon Aug 6, 2026
Gregory Roth (@pow2clk) would you be able to take a look? Thanks.
pow2clk commentedon Aug 6, 2026
KhronosGroup/SPIRV-Tools#6792 is the cause. Not sure it's faulty, but it succeeds without that change
damyanp commentedon Aug 6, 2026
I was going to just disable this test in #8738, since it looks like there's a pending PR to remove it in #8517.
Update SPIRV-Tools to 1c336172 (#8738)