diff options
| author | Yong He <yonghe@outlook.com> | 2025-03-06 14:26:34 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-06 14:26:34 -0800 |
| commit | 4485cf3eaf142cfd5f8470e86739acc67d4e12ea (patch) | |
| tree | c6ce220dfe5f3ab25ea558f2512f3761c9565c69 /tests/bugs | |
| parent | 55dd2deaff82bbdb72e125ba4b350030b7e5f427 (diff) | |
Update SPIRV-Tools and fix new validation errors. (#6511)
* Update SPIRV-Tools and fix new validation errors.
* Implement pointers for glsl target.
* Reworked packStorage/unpackStorage code gen to operate on pointers rather than values.
Diffstat (limited to 'tests/bugs')
| -rw-r--r-- | tests/bugs/gh-3931.slang | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/bugs/gh-3931.slang b/tests/bugs/gh-3931.slang deleted file mode 100644 index 501e85ae2..000000000 --- a/tests/bugs/gh-3931.slang +++ /dev/null @@ -1,24 +0,0 @@ -//TEST:SIMPLE(filecheck=CHECK): -O0 -target spirv -emit-spirv-directly -stage compute -entry computeMain -matrix-layout-row-major -//COM:TEST:SIMPLE(filecheck=CHECK): -O2 -target spirv -emit-spirv-directly -stage compute -entry computeMain -matrix-layout-row-major - -// Any level of optimization removes all OpMemberDecorations from FooBar -// with spirv-opt 2023 or upstream (2024-04). spirv-opt 2024-1 fixes the issue. - -//CHECK: ColMajor - -struct FooBar { - float4x4 c; - int load(int row, int col) - { - return int(c[row][col]); - //return *(int*)int(c[row][col]); // Does not fail if using a pointer to any member to indirectly send data - } -}; -RWStructuredBuffer<int> outputBuffer; -uniform StructuredBuffer<FooBar, ScalarDataLayout> sb; -[numthreads(4, 1, 1)] -void computeMain( - int3 dispatchThreadID : SV_DispatchThreadID) -{ - outputBuffer[dispatchThreadID.x] = sb[0].load(dispatchThreadID.x/4, dispatchThreadID.x%4); -}
\ No newline at end of file |
