From e43a23e7c0cd2e5e05e3e954ff999ecfbd673016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Wed, 25 May 2016 15:07:31 -0700 Subject: [PATCH] ext_image_dma_buf_import: Set tolerance to 565 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to lower the tolerance for when we're running on a 565 render target (like gbm does). Signed-off-by: Kristian Høgsberg Kristensen --- tests/spec/ext_image_dma_buf_import/sample_yuv.c | 5 +++++ 1 file changed, 5 insertions(+) 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 ff45013bc..b910b1999 100644 --- a/tests/spec/ext_image_dma_buf_import/sample_yuv.c +++ b/tests/spec/ext_image_dma_buf_import/sample_yuv.c @@ -110,6 +110,11 @@ piglit_display(void) if (res != PIGLIT_PASS) return res; + /* Lower tolerance in case we're running against a 565 render + * target (gbm). + */ + piglit_set_tolerance_for_bits(5, 6, 5, 8); + return piglit_probe_image_ubyte(0, 0, 4, 4, GL_RGBA, expected) ? PIGLIT_PASS : PIGLIT_FAIL; } -- GitLab