Commit b5e2e6ea authored by Marek Olšák's avatar Marek Olšák

fbo-blit-stretch: add ability to choose a subtest

Reviewed-by: Brian Paul's avatarBrian Paul <brianp@vmware.com>
parent 85a65442
......@@ -530,11 +530,17 @@ tests[] = {
},
};
static int test_index = -1;
enum piglit_result
piglit_display(void)
{
GLboolean pass = GL_TRUE;
for (unsigned i = 0; i < ARRAY_SIZE(tests); i++) {
if (test_index != -1 &&
test_index != i)
continue;
TestCase test = tests[i];
test.filter = GL_NEAREST;
......@@ -553,4 +559,7 @@ piglit_init(int argc, char **argv)
piglit_ortho_projection(piglit_width, piglit_height, GL_FALSE);
piglit_require_extension("GL_ARB_framebuffer_object");
if (argc == 2)
sscanf(argv[1], "%d", &test_index);
}
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