From 0c47d753c8f389f5d41d82875722c7ade66b1187 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 25 Apr 2017 09:52:11 +0200 Subject: shader_runner: add "relative probe rect rgba" command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- tests/shaders/shader_runner.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') 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 )", -- cgit v1.2.3