Skip to content

[SM6.9] compiler crash with Load with status #7508

Closed

Description

Description
When compiling a simple load of a vector in SM6.9 DXC crashes when a status parameter is present. The same shader code compiles with earlier shader models, and also with scalar values.

Steps to Reproduce
// -T cs_6_9 -E main
ByteAddressBuffer Buf : register(t0);

[numthreads(32, 1, 1)]
void main(uint3 gtid : SV_GroupThreadID, uint gidx : SV_GroupIndex)
{
uint status;
uint2 vec2 = Buf.Load < uint2 > (0, status);
}

See https://godbolt.org/z/o6aob9M8z

Actual Behavior
Internal compiler error: LLVM Assert

Environment

  • DXC version (dxcompiler.dll: 1.9 - 1.8.0.14932 (main, 474f9d2))
  • Host Operating System: (Windows 11 Pro 26100.4202)

Activity

  1. pow2clk commented on Jun 4, 2025

    @pow2clk
    Collaborator

    I have the root cause. We were using the old index to extract the status from the resret. Previously, this contained 4 scalars followed by the status. Now it is just a vector followed by the status. The fix is simple enough. I could have sworn that I had testing that would have covered this, but as we clearly don't, I'll need to add that and do a survey of other areas that might hit similar issues. I expect this will require a point release.

  2. moved this from Planning to Active in HLSL Supporton Jun 5, 2025
  3. added a commit that references this issue on Jun 5, 2025
    900ec4a
  4. added a commit that references this issue on Jun 25, 2025
    e07be1c
  5. moved this from Active to Closed in HLSL Supporton Jun 25, 2025
  6. added 2 commits that reference this issue on Jun 25, 2025
    ff7a5de
    49f5419
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugBug, regression, crash

Type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions