[Bug 94196] [HSW] border color issue with RGBA32UI

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Aug 10 15:02:38 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=94196

--- Comment #7 from Mark Janes <mark.a.janes at intel.com> ---
FWIW, here is the commit message that was merged:

Author:     Nicolas Capens <capn at google.com>
AuthorDate: Mon Jan 8 16:49:05 2018 -0500
Fix using representable texture channel ranges.

A value of 4294967295 (2^32 - 1) is not exactly representable in
IEEE-754 single-precision floating-point format, and so it gets rounded
to the next representable value, which is 4294967296. However, this
value can't be cast to an unsigned 32-bit integer without overflowing.

GLSL does not define what happens on overflow, and IEEE-754 defines it
as an exception but GLSL forbids exceptions. Hence some implementations
may produce unexpected results. dEQP assumed clamping to the largest
representable integer.

This change fixes that false assumption by reducing the range to values
representable in both float and integer formats.

Note that 32-bit integer formats can still hold values slightly larger
than these ranges. So while previously the floating-point ranges were
too large to represent integer values, they are now too small. This
can't be fixed without separating the integer format tests and only
using integer values to represent their ranges. This doesn't appear
necessary for the time being since the tests that use these floating-
point ranges have large 12/256 tolerances for the output color.

Google bug: 70910885
Component: Framework

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180810/761ff10b/attachment-0001.html>


More information about the intel-3d-bugs mailing list