From 4485cf3eaf142cfd5f8470e86739acc67d4e12ea Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 6 Mar 2025 14:26:34 -0800 Subject: 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. --- tests/glsl-intrinsic/atomic/atomicCounter.slang | 2 +- tests/glsl-intrinsic/atomic/atomicCounterTestMultiple.slang | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/glsl-intrinsic/atomic') 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 ; -- cgit v1.2.3