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/glsl-intrinsic | |
| 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/glsl-intrinsic')
| -rw-r--r-- | tests/glsl-intrinsic/atomic/atomicCounter.slang | 2 | ||||
| -rw-r--r-- | tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/glsl-intrinsic/atomic/atomicCounter.slang b/tests/glsl-intrinsic/atomic/atomicCounter.slang index a3b938565..4e32800e0 100644 --- a/tests/glsl-intrinsic/atomic/atomicCounter.slang +++ b/tests/glsl-intrinsic/atomic/atomicCounter.slang @@ -48,7 +48,7 @@ bool counterAsParam(atomic_uint param) bool testAtomicUint() { // ensure the code emits for `one` index into [3] for 12/4 -// CHECK_GLSL-DAG: {{.*}}_data_0[3]{{.*}} +// CHECK_GLSL-DAG: {{.*}}_data_{{.*}}[3]{{.*}} return true && atomicCounterExchange(one, 5) != 100 diff --git a/tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang b/tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang index e6a3ae7e9..714ddd571 100644 --- a/tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang +++ b/tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang @@ -20,15 +20,15 @@ void computeMain() { outputBuffer.data[0] = true -// CHECK_GLSL: one_0._data_0[3] +// CHECK_GLSL: one_0._data_{{.*}}[3] && atomicCounter(one) == 0 -// CHECK_GLSL: one_0._data_0[4] +// CHECK_GLSL: one_0._data_{{.*}}[4] && atomicCounter(two) == 0 -// CHECK_GLSL: one_0._data_0[1] +// CHECK_GLSL: one_0._data_{{.*}}[1] && atomicCounter(three) == 0 -// CHECK_GLSL: one_0._data_0[2] +// CHECK_GLSL: one_0._data_{{.*}}[2] && atomicCounter(four) == 0 -// CHECK_GLSL: five_0._data_1[0] +// CHECK_GLSL: five_0._data_{{.*}}[0] && atomicCounter(five) == 0 ; |
