At X-Screen color depth 30, ARGB2101010 visuals get exposed
by capable GL implementations, instead of ARGB8888, so also
handle those in the depth 32 test case, by asking for an
alpha channel of >= 1 bit, instead of >= 8 bit.

Signed-off-by: Mario Kleiner <mario.kleiner...@gmail.com>
---
 tests/egl/egl-configless-context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/egl/egl-configless-context.c 
b/tests/egl/egl-configless-context.c
index ce98465..978afa4 100644
--- a/tests/egl/egl-configless-context.c
+++ b/tests/egl/egl-configless-context.c
@@ -111,6 +111,7 @@ choose_config(EGLDisplay egl_dpy,
                *(a++) = 0;
                break;
        case 32:
+               /* 8,8,8,2 accomodates depth 32 RGBA8888 and RGBA1010102 */
                *(a++) = EGL_RED_SIZE;
                *(a++) = 8;
                *(a++) = EGL_GREEN_SIZE;
@@ -118,7 +119,7 @@ choose_config(EGLDisplay egl_dpy,
                *(a++) = EGL_BLUE_SIZE;
                *(a++) = 8;
                *(a++) = EGL_ALPHA_SIZE;
-               *(a++) = 8;
+               *(a++) = 2;
                break;
        }
 
-- 
2.7.4

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

Reply via email to