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-10 13:41:29 -0700
commit439f4d3958d910bebd60b789683422d7c20d996d (patch)
treec9b8f06ed14384151b183ea793c527e35b3c286a
parentaa59b17b9d2ebfe6a26d4bfc6126b598c6dda104 (diff)
shader_runner: Add a non-relative, rgba variant of relative probe rect rgb.
v2: Make it read in integer values directly for the x/y/w/h (Review by Ken). Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--tests/shaders/shader_runner.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c
index dac4589af..0a28eeb9f 100644
--- a/tests/shaders/shader_runner.c
+++ b/tests/shaders/shader_runner.c
@@ -2477,6 +2477,14 @@ piglit_display(void)
if (!piglit_probe_pixel_rgb(x, y, &c[2])) {
pass = false;
}
+ } else if (sscanf(line, "probe rect rgba "
+ "( %d , %d , %d , %d ) "
+ "( %f , %f , %f , %f )",
+ &x, &y, &w, &h,
+ c + 0, c + 1, c + 2, c + 3) == 8) {
+ if (!piglit_probe_rect_rgba(x, y, w, h, c)) {
+ pass = false;
+ }
} else if (sscanf(line, "relative probe rect rgb "
"( %f , %f , %f , %f ) "
"( %f , %f , %f )",