Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPIR-V] generated SPIR-V is invalid: [VUID-StandaloneSpirv-OpTypeImage-06924] Cannot store to OpTypeImage, OpTypeSampler, OpTypeSampledImage, or OpTypeAccelerationStructureKHR objects #7181

Open
gjaegy opened this issue Mar 6, 2025 · 1 comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V

Comments

@gjaegy
Copy link

gjaegy commented Mar 6, 2025

Description
Invalid SPIR-V is generated with the latest release and with head, when compiling with debug

Steps to Reproduce
Compile with the following command:
dxc.exe mipmap_gen_envmap.hlsl -E maincomp -T cs_6_0 -spirv -fspv-target-env=vulkan1.1 -Wall -Wno-unused-const-variable -D imBINDLESS=0 -fspv-extension=SPV_KHR_non_semantic_info -fspv-debug=vulkan-with-source -fspv-extension=SPV_EXT_descriptor_indexing

Actual Behavior
fatal error: generated SPIR-V is invalid: [VUID-StandaloneSpirv-OpTypeImage-06924] Cannot store to OpTypeImage, OpTypeSampler, OpTypeSampledImage, or OpTypeAccelerationStructureKHR objects
OpStore %927 %3239

Problem doesn't occur without the "-fspv-debug=vulkan-with-source" option

Environment

  • DXC version February 2025
  • Host Operating System Windows 11

Please contact me and I will send you a repro case per email.

@gjaegy gjaegy added bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V labels Mar 6, 2025
@sd20134
Copy link

sd20134 commented Mar 24, 2025

I get the same error on code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug, regression, crash needs-triage Awaiting triage spirv Work related to SPIR-V
Projects
Status: No status
Development

No branches or pull requests

2 participants