[Mesa-dev] [Bug 94957] dEQP failures on llvmpipe
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Apr 20 03:22:23 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=94957
--- Comment #9 from Roland Scheidegger <sroland at vmware.com> ---
So, the r32i/ui failures are actually due to an overflow.
One example I've seen samples a rgb8 unorm texture, scales to int range,
converts to int and outputs this. The problem is that rescaling to 2^31 - 1
really ends up with 2^31 due to imprecise float math, which causes an overflow
when converted to an int.
I'm nearly certain this is undefined behavior by the glsl spec, albeit the spec
doesn't explicitly say so (but should probably follow from ieee754 math). d3d10
would require clamping, making it work.
So, I'm inclined to say that's just a test bug. But even if it's undefined but
all gpus clamp anyway we might want to fix it nonetheless...
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160420/c1eae3dd/attachment.html>
More information about the mesa-dev
mailing list