Skip to content

[SPIR-V][Crash] structs called RayQuery are treated as ray query types in compute shaders #8601

Description

@jessebarker

Description
Encountered a crash in SpirvEmitter due to a source struct called "RayQuery" having been converted to a ray query type which causes lowerStructType to return a nullptr and cause a crash.

Steps to Reproduce
Compiler Explorer example here:

https://godbolt.org/z/avj7nn41x

We're using our own build of 1.10.2605.2, but it reproduces on "trunk" (assume that's HEAD of main).

Actual Behavior

SIGSEGV or BAD_ACCESS.

Environment

  • DXC version - libdxcompiler.dylib from 1.10.2605.2
  • Host Operating System - macOS 26.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triagespirvWork related to SPIR-V

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions