diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-04-25 09:52:11 +0200 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2017-05-10 08:50:03 +0200 |
commit | 0c47d753c8f389f5d41d82875722c7ade66b1187 (patch) | |
tree | 8357ecb0859f361e884a5591d015ec3e310ae19d /tests/shaders | |
parent | b3963b2afe3c01cc45c2f9784e492966c45ba81d (diff) |
shader_runner: add "relative probe rect rgba" command
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'tests/shaders')
-rw-r--r-- | tests/shaders/shader_runner.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/shaders/shader_runner.c b/tests/shaders/shader_runner.c index 26951aeaf..2fd3bd150 100644 --- a/tests/shaders/shader_runner.c +++ b/tests/shaders/shader_runner.c @@ -3418,7 +3418,19 @@ piglit_display(void) if (!piglit_probe_rect_rgb(x, y, w, h, &c[4])) { result = PIGLIT_FAIL; } + } else if (sscanf(line, "relative 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] * read_width; + y = c[1] * read_height; + w = c[2] * read_width; + h = c[3] * read_height; + if (!piglit_probe_rect_rgba(x, y, w, h, &c[4])) { + result = PIGLIT_FAIL; + } } else if (sscanf(line, "relative probe rect rgba int " "( %f , %f , %f , %f ) " "( %d , %d , %d , %d )", |