aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2013-03-14 14:28:14 -0700
committerMatt Turner <mattst88@gmail.com>2013-03-29 10:14:02 -0700
commit5ad37de0c1b0229799a21dab61d5320284c22377 (patch)
treeb990c9c5dc30c39cf19cf553a3db841e725b125a
parent1f9c47bee1a346e21da445080867060bb104ddeb (diff)
downloadpiglit-5ad37de0c1b0229799a21dab61d5320284c22377.tar.gz
shader_runner: Add 'draw rect tex'
Same as draw rect but allows you to pass tex coordinates.
-rw-r--r--tests/shaders/shader_runner.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index 5b084cb2..7f3ddbbf 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -1669,6 +1669,11 @@ piglit_display(void)
piglit_report_result(PIGLIT_FAIL);
}
glClipPlane(GL_CLIP_PLANE0 + x, d);
+ } else if (string_match("draw rect tex", line)) {
+ program_must_be_in_use();
+ get_floats(line + 13, c, 8);
+ piglit_draw_rect_tex(c[0], c[1], c[2], c[3],
+ c[4], c[5], c[6], c[7]);
} else if (string_match("draw rect", line)) {
program_must_be_in_use();
get_floats(line + 9, c, 4);