Summary: | [Bisected ILK]Piglit spec_glsl-1.20_execution_clipping_fixed-clip-enables fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | high | CC: | idr, xunx.fang |
Version: | git | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2012-11-06 02:23:34 UTC
Oglc case mustpass(basic.clip) and userclip(basic.allCases) also fail on ILK, have some bisect result. Thanks for the report! Patches are on the mailing list: http://lists.freedesktop.org/archives/mesa-dev/2012-November/029663.html http://lists.freedesktop.org/archives/mesa-dev/2012-November/029664.html http://lists.freedesktop.org/archives/mesa-dev/2012-November/029665.html Ogles1conform case userclip.c also fails on ironlake and has same bisect commit. commit fe2ef4b810ad1c2e712881742000bc0950b72660 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Tue Nov 6 22:23:05 2012 -0800 i965/vs: Fix user clip plane setup on Gen4-5. On Gen6-7, we don't compact clip planes, and nr_userclip_plane_consts is the last bit set, so iterating from i = 0..nr_userclip_plane_consts covers all active clip planes and is the right thing to do. works and is the right thing to do. However, that doesn't work at all on Gen4-5. Since we don't compact clip planes, we skip over ones which aren't active (via the continue statement). We also set set nr_userclip_plane_consts to the number of active clip planes, which means that we end the loop after checking that many bits. If the set of clip planes wasn't contiguous, this means we'd fail to find the last few. By changing the iteration to MAX_CLIP_PLANES, we correctly find all of the active clip planes. Fixes regressions since 66c8473e028d (replacing the old VS backend) in Piglit's spec/glsl-1.20/execution/clipping/fixed-clip-enables and oglconform's mustpass(basic.clip) and userclip(basic.allCases). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56791 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Verified.Fixed by commit fe2ef4b810ad1c2e712881742000bc0950b72660. |
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.