ext_image_dma_buf_import: Set tolerance to 565

We need to lower the tolerance for when we're running on a 565 render
target (like gbm does).
Signed-off-by: default avatarKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
parent 21c6d572
...@@ -110,6 +110,11 @@ piglit_display(void) ...@@ -110,6 +110,11 @@ piglit_display(void)
if (res != PIGLIT_PASS) if (res != PIGLIT_PASS)
return res; 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) ? return piglit_probe_image_ubyte(0, 0, 4, 4, GL_RGBA, expected) ?
PIGLIT_PASS : PIGLIT_FAIL; PIGLIT_PASS : PIGLIT_FAIL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment