Color spacing of 1 between consecutive textures may yield false positives
when probing, and defer error reporting to the transition from color 255 to
color 0. That may be confusing. So increase the color spacing to detect
errors earlier.

Cc: Frank Henigman <fjhenig...@google.com>
Signed-off-by: Thomas Hellstrom <thellst...@vmware.com>
---
 tests/glx/glx-multithread-texture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/glx/glx-multithread-texture.c 
b/tests/glx/glx-multithread-texture.c
index 08121e3..a70d246 100644
--- a/tests/glx/glx-multithread-texture.c
+++ b/tests/glx/glx-multithread-texture.c
@@ -107,7 +107,7 @@ load_func(void *arg)
        glEnable(GL_TEXTURE_2D);
 
        while (!quit && count <= num_test) {
-               int color = count & 0xff;
+               int color = (3 * count) & 0xff;
 
                assert(tex->user == LOAD);
                if (tex->color != color) {
-- 
2.7.4

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to