Summary: | [HSW Bisected]Piglit spec/ARB_vertex_type_2_10_10_10_rev/draw-vertices-2101010 fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | RESOLVED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | CC: | christophe.prigent, idr, xunx.fang |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2013-01-09 02:49:06 UTC
Hmm. This seems very believable, but I just retested it and it's working fine on my Haswell machine... Hua, does it happen on all our HSW? (In reply to comment #2) > Hua, does it happen on all our HSW? Yes, It still fails. Fails on my hsw -- I assume it's an issue related to the equation differences in bf75a1f09 Okay, I can reproduce this finally. Not sure why I couldn't earlier. At least this means both Haswell and Bay Trail follow the same rules. Ken, You did some triage on this, and there was some discussion on IRC. What was the outcome? It looks like the test just needs to be updated to accept either decoding of 10-bit floats. Since this is a test error, I'm decreasing the severity and removing from the release tracker. Fixed by piglit commit: commit 35daaa1695ea01eb85bc02f9be9b6ebd1a7113a1 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Mon Dec 25 21:10:16 2017 -0800 draw-vertices-2101010: Accept either SNORM conversion formula. OpenGL defines two equations for converting from signed-normalized to floating point data. These are: f = (2c + 1)/(2^b - 1) (equation 2.2) f = max{c/2^(b-1) - 1), -1.0} (equation 2.3) ARB_vertex_type_2_10_10_10_rev specifies equation 2.2 is to be used. However, OpenGL 4.2 switched to use equation 2.3 in all scenarios. This matched an earlier OpenGL ES 3.0 decision to only have one formula, as well as a DirectX decision to change to equation 2.3. Some hardware also only supports equation 2.3. So, basically no one can rely on equation 2.2 happening, and some people do rely on 2.3. This patch continues to require equation 2.3 for GL 4.2+, but relaxes the test to allow either behavior for earlier GL versions. See the following discussion for more details: https://lists.freedesktop.org/archives/mesa-dev/2013-August/042680.html This makes this test pass on i965 with Haswell and later. Reviewed-by: Roland Scheidegger <sroland@vmware.com> |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.