Only require a 1 bit alpha channel, so tests work on
both RGBA 8/8/8/8 and RGBA 10/10/10/2 configurations.

Note that this will cause many tests not to be skipped,
which assume an 8 bit alpha channel instead of a 2 bit
alpha channel. These tests instead fail in RGBA1010102
config.

Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com>
---
 tests/util/piglit-framework-gl/piglit_winsys_framework.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/util/piglit-framework-gl/piglit_winsys_framework.c 
b/tests/util/piglit-framework-gl/piglit_winsys_framework.c
index 315d6de..5713f5c 100644
--- a/tests/util/piglit-framework-gl/piglit_winsys_framework.c
+++ b/tests/util/piglit-framework-gl/piglit_winsys_framework.c
@@ -128,7 +128,7 @@ choose_config_attribs(const struct piglit_gl_test_config 
*test_config,
 
        if (test_config->window_visual & PIGLIT_GL_VISUAL_RGBA) {
                attrib_list[i++] = WAFFLE_ALPHA_SIZE;
-               attrib_list[i++] = min_color;
+               attrib_list[i++] = 1;
        }
 
        if (test_config->window_visual & PIGLIT_GL_VISUAL_DEPTH) {
-- 
2.7.4

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

Reply via email to