Skip to content

DXC crashes with -fcgl when shader contains function with resource argument #8440

@V-FEXrt

Description

@V-FEXrt

Description
DXC seg faults when using -fcgl flag and the shader contains a function with a resource argument.

Steps to Reproduce
dxc -T cs_6_8 -fcgl test.hlsl

RWByteAddressBuffer OutBuff : register(u0);

void foo(RWByteAddressBuffer Buf) {
}

[numthreads(8, 1, 1)]
void main() {
  foo(OutBuff);
}

https://godbolt.org/z/eMcGq84dd

Actual Behavior
DXC crashes

Environment

  • DXC version: trunk
  • Host Operating System: linux or windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashneeds-triageAwaiting triage

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions