summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Bieler <fabianbieler@fastmail.fm>2018-01-04 23:51:44 +0100
committerFabian Bieler <fabianbieler@fastmail.fm>2018-01-16 20:10:44 +0100
commit7c50b5fba5aded5874ec11fe83fe3a07b127e63d (patch)
tree32b9dadce621f5faae4f9dc3d850b745b9a70ba4
parent653f377e454fee56548522287bbd492b6c11f37c (diff)
util-gl: Remove tolerance from integer pixel probes.
The present tests using these functions use the default piglit_tolerance of 0.01 which is as good as no tolerance for integer values. Reviewed-by: Brian Paul <brianp@vmware.com>
-rw-r--r--tests/util/piglit-util-gl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/piglit-util-gl.c b/tests/util/piglit-util-gl.c
index 0d2b7cabd..e9c20385e 100644
--- a/tests/util/piglit-util-gl.c
+++ b/tests/util/piglit-util-gl.c
@@ -1476,7 +1476,7 @@ piglit_probe_rect_rgba_int(int x, int y, int w, int h, const int *expected)
probe = &pixels[(j*w+i)*4];
for (p = 0; p < 4; ++p) {
- if (abs(probe[p] - expected[p]) >= piglit_tolerance[p]) {
+ if (probe[p] != expected[p]) {
printf("Probe color at (%d,%d)\n", x+i, y+j);
printf(" Expected: %d %d %d %d\n",
expected[0], expected[1], expected[2], expected[3]);
@@ -1509,7 +1509,7 @@ piglit_probe_rect_rgba_uint(int x, int y, int w, int h,
probe = &pixels[(j*w+i)*4];
for (p = 0; p < 4; ++p) {
- if (abs((int) (probe[p] - expected[p])) >= piglit_tolerance[p]) {
+ if (probe[p] != expected[p]) {
printf("Probe color at (%d,%d)\n", x+i, y+j);
printf(" Expected: %u %u %u %u\n",
expected[0], expected[1], expected[2], expected[3]);