https://bugs.freedesktop.org/show_bug.cgi?id=94957
--- Comment #9 from Roland Scheidegger <srol...@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev