[Piglit] [PATCH 2/2] ext_image_dma_buf_import: Set tolerance to 565

Kristian Høgsberg hoegsberg at gmail.com
Wed May 25 22:09:55 UTC 2016


From: Kristian Høgsberg Kristensen <kristian.h.kristensen at intel.com>

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 <kristian.h.kristensen at intel.com>
---
 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 ff45013..b910b19 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;
 }
-- 
2.5.0



More information about the Piglit mailing list