[Piglit] [PATCH] texture-integer: use usampler/uint value
Ilia Mirkin
imirkin at alum.mit.edu
Fri Nov 20 21:24:17 PST 2015
All of the random values are positive. Mixing uint texture with isampler
is not allowed, and happens to cause problems for freedreno. Using uint
works.
---
tests/spec/gl-3.0/texture-integer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/spec/gl-3.0/texture-integer.c b/tests/spec/gl-3.0/texture-integer.c
index 5fe90aa..389164b 100644
--- a/tests/spec/gl-3.0/texture-integer.c
+++ b/tests/spec/gl-3.0/texture-integer.c
@@ -105,10 +105,10 @@ static const struct format_info Formats[] = {
static const char *FragShaderText =
"#version 130 \n"
"uniform vec4 bias; \n"
- "uniform isampler2D tex; \n"
+ "uniform usampler2D tex; \n"
"void main() \n"
"{ \n"
- " ivec4 t = texture(tex, gl_TexCoord[0].xy); \n"
+ " uvec4 t = texture(tex, gl_TexCoord[0].xy); \n"
" gl_FragColor = vec4(t) + bias; \n"
"} \n";
--
2.4.10
More information about the Piglit
mailing list