[Piglit] [PATCH 3/3] glx/glx-multithread-texture: Use larger color differences

Thomas Hellstrom thellstrom at vmware.com
Wed Jun 21 12:25:24 UTC 2017


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 <fjhenigman at google.com>
Signed-off-by: Thomas Hellstrom <thellstrom at 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



More information about the Piglit mailing list