summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-12-04 15:10:54 +0200
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2020-01-15 14:43:46 +0000
commiteb44eb2a07e26b6964de0ca3d0c1b5abc307accc (patch)
tree324f9014ee87bb30f35207879a95d397e1b1d31c
parent9e9d35f8f4ced7286afd291f47a373b75d63cbd8 (diff)
tests: intel_blackhole_render: additional check before enable & after clear
Just checking the glClear passed alright before the discarded draw. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--tests/spec/intel_blackhole_render/blackhole_draw.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/spec/intel_blackhole_render/blackhole_draw.c b/tests/spec/intel_blackhole_render/blackhole_draw.c
index 7f2adc413..a24f6c22b 100644
--- a/tests/spec/intel_blackhole_render/blackhole_draw.c
+++ b/tests/spec/intel_blackhole_render/blackhole_draw.c
@@ -120,6 +120,12 @@ run(void)
glClearColor(0.0, 1.0, 0.0, 1.0);
glClear(GL_COLOR_BUFFER_BIT);
+ const float blackhole_draw_expected[] = { 0.0, 1.0, 0.0, 1.0 };
+ if (!piglit_probe_pixel_rgba(piglit_width / 2,
+ piglit_height / 2,
+ blackhole_draw_expected))
+ return PIGLIT_FAIL;
+
glEnable(GL_BLACKHOLE_RENDER_INTEL);
if (!glIsEnabled(GL_BLACKHOLE_RENDER_INTEL))
@@ -132,7 +138,6 @@ run(void)
piglit_present_results();
- const float blackhole_draw_expected[] = { 0.0, 1.0, 0.0, 1.0 };
if (!piglit_probe_pixel_rgba(piglit_width / 2,
piglit_height / 2,
blackhole_draw_expected))