microsoft / microsoft/DirectXShaderCompiler

[SPIR-V] Internal compiler error with bit-field

Open
#7,790 1 comment 0 reactions 1 assignee View on GitHub

@s-perron is already working on this.

Since Oct 14, 2025.

bug spirv
Dominant language
C++
Stars
3.7k
Forks
900
Avg merge
2d 11h
Merged PRs (30d)
44

Description

With this simple HLSL code:

struct Test {
    bool a: 1;
    int b;
};
RWStructuredBuffer<Test> buffer;

[numthreads(1, 1, 1)]
void main(){
    Test t;
    t.a = true;
    t.b = 1;
    buffer[0] = t;
}

While compiling with command dxc.exe -T cs_6_5 -spirv test_ice.hlsl, we have error Internal compiler error: access violation. Attempted to read from address 0x0000000000000030, remove -spirv by compiling to dxil is ok.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.