[Piglit] [PATCH 2/4] tests/egl/egl-configless-context: Handle x-screen depth 30

Mario Kleiner mario.kleiner.de at gmail.com
Tue Sep 5 05:52:47 UTC 2017


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.de at 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



More information about the Piglit mailing list