llvm-project
llvm-project copied to clipboard
[HLSL][SPIRV] WaveSize attribute doesn't work for SPIRV
https://godbolt.org/z/PqPxh6z9T
When using the WaveSize attribute with clang-dxc and -spirv an unhelpful error message is shown:
> type t.hlsl
[WaveSize(32)]
[numthreads(1, 1, 1)]
void main() {
}
> ./clang-dxc -spirv -T cs_6_8 t.hlsl
t.hlsl:1:2: error: attribute 'WaveSize' requires shader model 6.6 or greater
1 | [WaveSize(32)]
| ^
1 error generated.
Note that DXC says: "
My PR fixed this issue, but I used the wrong keyword in the PR comment. Please close.
Closed as resolved by #196004.