<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - WebGL conformance2/reading/read-pixels-from-fbo-test.html fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94345#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - WebGL conformance2/reading/read-pixels-from-fbo-test.html fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=94345">bug 94345</a>
from <span class="vcard"><a class="email" href="mailto:kenneth@whitecape.org" title="Kenneth Graunke <kenneth@whitecape.org>"> <span class="fn">Kenneth Graunke</span></a>
</span></b>
<pre>I think there may be a bug in the test.
The (RGB5_A1, RGBA, UNSIGNED_BYTE) case is giving this:
FAIL Expected color = 127.5,0,178.5,255, was = 123,0,173,255
The first suspicious aspect is that these are 8-bit UNORM values, which are
supposed to be integers between 0 and 255. But it's expecting 127.5 and
178.5...which are not integers.
Reading the test, denormalizeColor() has a tolerance of 5 (tol = 5) for this
case. 178.5 vs 173 would pass with a tolerance of 6. In other cases (unsigned
short/int) it raises the tolerance to 40 to allow NVIDIA to pass. Also, with a
5-bit source value, being off by 1 results in a delta of 8. I think the
tolerance should be raised.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>