Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Mesa
piglit
Commits
21c6d572
Commit
21c6d572
authored
May 25, 2016
by
Kristian Høgsberg Kristensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: Observe piglit_tolerance in piglit_probe_image_ubyte()
parent
94ab4e6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
tests/util/piglit-util-gl.c
tests/util/piglit-util-gl.c
+3
-1
No files found.
tests/util/piglit-util-gl.c
View file @
21c6d572
...
...
@@ -1792,7 +1792,9 @@ piglit_probe_image_ubyte(int x, int y, int w, int h, GLenum format,
const
GLubyte
*
probe
=
&
pixels
[(
j
*
w
+
i
)
*
c
];
for
(
p
=
0
;
p
<
c
;
++
p
)
{
if
(
probe
[
p
]
==
expected
[
p
])
const
int
tolerance
=
ceil
(
piglit_tolerance
[
p
]
*
255
);
if
(
abs
((
int
)
probe
[
p
]
-
(
int
)
expected
[
p
])
<
tolerance
)
continue
;
printf
(
"Probe at (%i,%i)
\n
"
,
x
+
i
,
y
+
j
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment