Skip to content

Crash when function named in patchconstantfun does not exist #8046

@petrsm

Description

@petrsm

Compiling the attached shader with latest released DXC compiler causes crash.

Steps to Reproduce:

godbolt repro: https://godbolt.org/z/c9MKcP5ae

Please download attached shader file and compile with following command line:

dxc.exe -Wno-misplaced-attributes -flegacy-resource-reservation -Zi -Qembed_debug -D NX_IS_DXC_COMPILER /D "NX_GPU_TARGET_SHADER_MODEL=NX_SHADER_MODEL6" -T lib_6_6 /O3 /D NX_GPU_TARGET shaders_r2_dx12.txt

Actual Behavior:
"Internal compiler error: access violation. Attempted to read from address 0x0000000000000028"

shaders_r2_dx12.txt

Environment

  • DXC version : dxcompiler.dll: 1.9 - 1.8.2505.32 (b106a96); dxil.dll: 1.9(1.8.2505.32)
  • Host Operating System : Windows 10 Pro, 22H2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug, regression, crashcrashDXC crashing or hitting an assertincorrect-codeIssues relating to handling of incorrect code

    Type

    No type

    Projects

    Status

    Triaged

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions