summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2014-08-28 15:42:09 -0700
committerEric Anholt <eric@anholt.net>2015-04-09 23:23:29 -0700
commitfe4d2a3300dc8d95b888a4ba1d00b86f8c62ab5e (patch)
tree862531ae9aac3328a60b095d0f27b1558457de89
parentd812e937e078abb4efea8186f101e5d47b59b52b (diff)
shader_runner: Add a non-relative, rgba variant of relative probe rect rgb.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--tests/shaders/shader_runner.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index dac4589af..8f369cd09 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2477,6 +2477,19 @@ piglit_display(void)
if (!piglit_probe_pixel_rgb(x, y, &c[2])) {
pass = false;
}
+ } else if (sscanf(line, "probe rect rgba "
+ "( %f , %f , %f , %f ) "
+ "( %f , %f , %f , %f )",
+ c + 0, c + 1, c + 2, c + 3,
+ c + 4, c + 5, c + 6, c + 7) == 8) {
+ x = c[0];
+ y = c[1];
+ w = c[2];
+ h = c[3];
+
+ if (!piglit_probe_rect_rgba(x, y, w, h, &c[4])) {
+ pass = false;
+ }
} else if (sscanf(line, "relative probe rect rgb "
"( %f , %f , %f , %f ) "
"( %f , %f , %f )",