Skip to content

SamplerDescriptorHeap = ResourceDescriptorHeap crashes DXC #6651

Open

Description

Description

Assigning the ResourceHeap to the SamplerHeap crashes DXC.

// RUN: %dxc -T cs_6_6 %s | FileCheck %s

[numthreads(1, 1, 1)]
void main() {
  SamplerDescriptorHeap = ResourceDescriptorHeap;
}
$ dxc -T cs_6_6 repro.hlsl
DirectXShaderCompiler/tools/clang/lib/CodeGen/CodeGenTypes.cpp:795: const CGRecordLayout &clang::CodeGen::CodeGenTypes::getCGRecordLayout(const RecordDecl *): Assertion `Layout && "Unable to find record layout information for type"' failed.

Similar bug, but different stacktrace:

[numthreads(1, 1, 1)]
void main() {
  ResourceDescriptorHeap = ResourceDescriptorHeap[0];
}
[numthreads(1, 1, 1)]
void main() {
  ResourceDescriptorHeap[0];
}
[numthreads(1, 1, 1)]
void main() {
  ResourceDescriptorHeap[0][1];
}

Environment

  • DXC version: HEAD (128e6ce)
  • Host Operating System: Linux

Activity

  1. added
    bug
    needs-triage
    on May 27, 2024
  2. added
    crash
    incorrect-code
    and removed
    needs-triage
    on May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrashincorrect-code

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions