[Piglit] [PATCH 2/8] sample_rgb/yuv: Present the results to the screen in non-auto.
Eric Anholt
eric at anholt.net
Tue Jul 26 00:43:38 UTC 2016
---
tests/spec/ext_image_dma_buf_import/sample_rgb.c | 8 ++++++--
tests/spec/ext_image_dma_buf_import/sample_yuv.c | 8 ++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/tests/spec/ext_image_dma_buf_import/sample_rgb.c b/tests/spec/ext_image_dma_buf_import/sample_rgb.c
index e6df06b64354..420cc8c3111e 100644
--- a/tests/spec/ext_image_dma_buf_import/sample_rgb.c
+++ b/tests/spec/ext_image_dma_buf_import/sample_rgb.c
@@ -61,8 +61,12 @@ piglit_display(void)
if (res != PIGLIT_PASS)
return res;
- return piglit_probe_image_ubyte(0, 0, 2, 2, GL_RGBA, expected) ?
- PIGLIT_PASS : PIGLIT_FAIL;
+ if (!piglit_probe_image_ubyte(0, 0, 2, 2, GL_RGBA, expected))
+ res = PIGLIT_FAIL;
+
+ piglit_present_results();
+
+ return res;
}
static int
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 b910b199935b..a7b78f9de20a 100644
--- a/tests/spec/ext_image_dma_buf_import/sample_yuv.c
+++ b/tests/spec/ext_image_dma_buf_import/sample_yuv.c
@@ -115,8 +115,12 @@ piglit_display(void)
*/
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;
+ if (!piglit_probe_image_ubyte(0, 0, 4, 4, GL_RGBA, expected))
+ res = PIGLIT_FAIL;
+
+ piglit_present_results();
+
+ return res;
}
static int
--
2.8.1
More information about the Piglit
mailing list