Skip to content

[SPIR-V] Compilation failure with SPV_KHR_non_semantic_info #8112

@DragonJoker

Description

@DragonJoker

Description
At work, we have a shader that compiles properly when SPV_KHR_non_semantic_info is not used, but fails to compile as soon as this extension is used.

Steps to Reproduce
The shader doesn't compile on Compiler Explorer, but I couldn't make sure the issue is the same.
Hence using the HLSL code from the Compiler Explorer link, with the provided command line options, the shader doesn't compile.

Actual Behavior
When compiling in CLI, using this command :
dxc.exe .\Shader.hlsl -E DigitBinningPass -T cs_6_0 -spirv -fspv-target-env="vulkan1.1" -Wall -Wno-unused-const-variable -D imBINDLESS=1 -fspv-extension=SPV_EXT_descriptor_indexing -fspv-extension=SPV_KHR_non_semantic_info -fspv-debug=vulkan-with-source
produces the following output :
`fatal error: generated SPIR-V is invalid: ID '2535[%2535]' has not been defined
%2534 = OpExtInst %void %2 DebugValue %805 %2495 %2194 %int_0 %2535 %int_0

note: please file a bug report on https://github.com/Microsoft/DirectXShaderCompiler/issues with source code if possible`

Environment

  • DXC version 1.8.0.5082
  • Host Operating System Windows 11 25H2

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashspirvWork related to SPIR-V

Type

No type

Projects

Status

For Google

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions