Skip to content

[SPIR-V] Use of Nonsemantic.DebugBreak creates invalid SPIR-V #8012

@jkoenen

Description

@jkoenen

Description
I'm trying to use the NonSemantic.DebugBreak instruction (specified here: https://github.khronos.org/SPIRV-Registry/nonsemantic/NonSemantic.DebugBreak.html) using DXC. Unfortunately DXC fails with an error.

Steps to Reproduce
Simple Shader reproducing the issue: https://godbolt.org/z/6dW8eK79a
--->

Actual Behavior
dxc outputs the following error:

fatal error: failed to optimize SPIR-V: Id 1 is defined more than once
note: please file a bug report on https://github.com/Microsoft/DirectXShaderCompiler/issues with source code if possible

Compiler returned: 5

Environment

  • DXC version libdxcompiler.so: 1.9(dev;1-9efbb6c3); libdxil.so: 1.9
  • Host Operating System Windows 11

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