Skip to content

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

@gjaegy

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.

Metadata

Metadata

Assignees

Labels

bugBug, regression, crashspirvWork related to SPIR-V

Type

No type

Projects

Status

Done

Status

Triaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions