summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Faye-Lund <erik.faye-lund@collabora.com>2024-03-26 10:37:51 +0100
committerErik Faye-Lund <erik.faye-lund@collabora.com>2024-03-26 15:48:26 +0100
commit025e462ae2dffde2890c30121a447f2d32b93e49 (patch)
treee63bb45d2f82be45f0dc9d056ddb13bdcc28e326
parentf9e26b98b1fa03a0fe25084ede56b2fabe057098 (diff)
util: fix multisample_texture_fs_template
It's not the texture function that needs the prefix, it's the sampler. Fixes: c55e22a5c ("arb_copy_image-formats: avoid undefined behavior") Reviewed-by: Eric R. Smith <eric.smith@collabora.com> Tested-by: Eric R. Smith <eric.smith@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/897>
-rw-r--r--tests/util/piglit-util-gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 8d93ac171..5b665d874 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -3273,14 +3273,14 @@ static const char multisample_texture_fs_template[] =
"#version 130\n"
"#extension GL_ARB_sample_shading : enable\n"
"in vec2 tex_coords;\n"
-"uniform sampler2DArray tex;\n"
+"uniform %ssampler2DArray tex;\n"
"uniform int tex_depth;\n"
"uniform int z;\n"
"out %svec4 fragColor;\n"
"void main()\n"
"{\n"
" int layer = (gl_SampleID * tex_depth) + z;\n"
-" fragColor = %stexture(tex, vec3(tex_coords, layer));\n"
+" fragColor = texture(tex, vec3(tex_coords, layer));\n"
"}\n";
/**