-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[HLSL] Crash using array parameters #125743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Labels
Comments
Simplified: https://godbolt.org/z/YMszdnP18 |
This was referenced Feb 7, 2025
Icohedron
pushed a commit
to Icohedron/llvm-project
that referenced
this issue
Feb 11, 2025
…rayParameterType (llvm#126561) Desugar type when converting from a ConstantArrayType to an ArrayParameterType in getArrayParameterType Closes llvm#125743
joaosaffran
pushed a commit
to joaosaffran/llvm-project
that referenced
this issue
Feb 14, 2025
…rayParameterType (llvm#126561) Desugar type when converting from a ConstantArrayType to an ArrayParameterType in getArrayParameterType Closes llvm#125743
Also part of fixing this broader issue: #127670 |
@llvm/issue-subscribers-clang-frontend Author: Chris B (llvm-beanz)
Clang currently crashes when compiling the following simplified compute shader:
typedef uint4 uint32_t4;
typedef uint32_t4 uint32_t8[2];
uint32_t Accumulate(uint32_t8 V) {
uint32_t4 SumVec = V[0] + V[1];
return SumVec.x + SumVec.y + SumVec.z + SumVec.w;
}
Buffer<uint4> Buf;
RWBuffer<uint> Out;
[numthreads(8,1,1)]
void main(uint GI : SV_GroupIndex) {
uint32_t8 Val = {Buf[GI], Buf[GI+8]};
Out[GI] = Accumulate(Val);
} |
sivan-shani
pushed a commit
to sivan-shani/llvm-project
that referenced
this issue
Feb 24, 2025
…rayParameterType (llvm#126561) Desugar type when converting from a ConstantArrayType to an ArrayParameterType in getArrayParameterType Closes llvm#125743
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Clang currently crashes when compiling the following simplified compute shader:
Godbolt Link
The text was updated successfully, but these errors were encountered: