Skip to content

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

Description

@gjaegy

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugBug, regression, crashspirvWork related to SPIR-V

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions