From c701ec00ccce6dfa8094d6550ce2db929fc8cefe Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 1 Jul 2025 19:09:29 -0700 Subject: Defer immutable buffer loads when emitting spirv. (#7579) * Defer immutable buffer loads when emitting spirv. * Fix. * Fix. * Fix. * Fix tests. * Fix test. --- tests/glsl-intrinsic/intrinsic-basic.slang | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/glsl-intrinsic') diff --git a/tests/glsl-intrinsic/intrinsic-basic.slang b/tests/glsl-intrinsic/intrinsic-basic.slang index 4e1dfe8c4..7e4a76734 100644 --- a/tests/glsl-intrinsic/intrinsic-basic.slang +++ b/tests/glsl-intrinsic/intrinsic-basic.slang @@ -56,7 +56,7 @@ bool Test_ScalarType() const mat3 identity3x3 = mat3(vec3(1,0,0),vec3(0,1,0),vec3(0,0,1)); const mat4 identity4x4 = mat4(vec4(1,0,0,0),vec4(0,1,0,0),vec4(0,0,1,0),vec4(0,0,0,1)); - // CHECK_SPIR-LABEL: OpAccessChain {{.*}} %inputBuffer + // CHECK_SPIR-LABEL: Op{{.*}}AccessChain {{.*}} %inputBuffer const int zero = inputBuffer.data[0]; const int one = inputBuffer.data[1]; const int negaOne = inputBuffer.data[2]; @@ -539,7 +539,7 @@ bool Test_VectorType() constexpr const float epsilon = 0.000001; - // CHECK_SPIR-LABEL: OpAccessChain {{.*}} %inputBuffer + // CHECK_SPIR-LABEL: Op{{.*}}AccessChain {{.*}} %inputBuffer const int zero = inputBuffer.data[0]; const int one = inputBuffer.data[1]; const int negaOne = inputBuffer.data[2]; @@ -1106,7 +1106,7 @@ bool Test_VectorType() ; // CHECK_GLSL-LABEL: bool Test_VectorType_1 - // CHECK_SPIR-LABEL: OpAccessChain {{.*}} %inputBuffer + // CHECK_SPIR-LABEL: Op{{.*}}AccessChain {{.*}} %inputBuffer } [numthreads(4, 1, 1)] -- cgit v1.2.3