summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2019-12-04 15:09:42 +0200
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2020-01-15 14:43:46 +0000
commitb40f5a868c5b062e78d2c7bce0a06116f5ab7f7d (patch)
tree07ce2b562a2febc5f65173ac1f73c43a5a298406
parent7e729a8bd13e31449de847d14fc07080f373a4ee (diff)
tests: intel_blackhole_render: fix the tests when not run with -auto
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
-rw-r--r--tests/spec/intel_blackhole_render/blackhole_draw.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/spec/intel_blackhole_render/blackhole_draw.c b/tests/spec/intel_blackhole_render/blackhole_draw.c
index b481c0912..24a2611ec 100644
--- a/tests/spec/intel_blackhole_render/blackhole_draw.c
+++ b/tests/spec/intel_blackhole_render/blackhole_draw.c
@@ -45,8 +45,8 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
PIGLIT_GL_TEST_CONFIG_END
-enum piglit_result
-piglit_display(void)
+static enum piglit_result
+run(void)
{
float delta = 1.01 / piglit_width;
GLuint prog;
@@ -148,9 +148,17 @@ piglit_display(void)
blackhole_clear_expected))
return PIGLIT_FAIL;
+ return PIGLIT_PASS;
+}
+
+enum piglit_result
+piglit_display(void)
+{
+ enum piglit_result result = run();
+
glDisable(GL_BLACKHOLE_RENDER_INTEL);
- return PIGLIT_PASS;
+ return result;
}
void piglit_init(int argc, char **argv)