[Piglit] [PATCH] EGL_EXT_image_dma_buf_import: set RGBA visual for yuv sampling tests

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Nov 15 23:13:23 UTC 2018


Depending on the platform you're running on, the test might fail with
the AYUV format (or another format with alpha channel). To make this
reliable, force to visual to RGBA.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Suggested-by: Eric Anholt <eric at anholt.net>
---
 tests/spec/ext_image_dma_buf_import/sample_yuv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/ext_image_dma_buf_import/sample_yuv.c b/tests/spec/ext_image_dma_buf_import/sample_yuv.c
index 38c0ee697..ed9f87e0f 100644
--- a/tests/spec/ext_image_dma_buf_import/sample_yuv.c
+++ b/tests/spec/ext_image_dma_buf_import/sample_yuv.c
@@ -36,6 +36,7 @@
 PIGLIT_GL_TEST_CONFIG_BEGIN
 
 	config.supports_gl_es_version = 20;
+	config.window_visual = PIGLIT_GL_VISUAL_RGBA;
 
 PIGLIT_GL_TEST_CONFIG_END
 
-- 
2.19.1



More information about the Piglit mailing list