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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to