Summary: | [BDW]Piglit spec_OpenGL_3.0_clearbuffer-mixed-format fails | ||
---|---|---|---|
Product: | Mesa | Reporter: | lu hua <huax.lu> |
Component: | Drivers/DRI/i965 | Assignee: | Kenneth Graunke <kenneth> |
Status: | VERIFIED FIXED | QA Contact: | Intel 3D Bugs Mailing List <intel-3d-bugs> |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
lu hua
2014-04-24 03:35:18 UTC
Patches to fix this are on the mailing list: http://lists.freedesktop.org/archives/mesa-dev/2014-May/058989.html http://lists.freedesktop.org/archives/mesa-dev/2014-May/058991.html http://lists.freedesktop.org/archives/mesa-dev/2014-May/058988.html http://lists.freedesktop.org/archives/mesa-dev/2014-May/058990.html http://lists.freedesktop.org/archives/mesa-dev/2014-May/058992.html Fixed by: commit 9701c6984d8d6570d90a15f86872b16bdba117f2 Author: Kenneth Graunke <kenneth@whitecape.org> Date: Fri May 2 01:10:17 2014 -0700 meta: Only clear the requested color buffers. This path is used to implement both glClear and glClearBuffer; the latter is only supposed to clear particular buffers. Core Mesa provides us that information in the buffers bitmask; we must only clear buffers mentioned there. To accomplish this, we save/restore the color draw buffers state, and use glDrawBuffers to restrict drawing to the relevant buffers. Fixes Piglit's spec/!OpenGL 3.0/clearbuffer-mixed-formats and spec/ARB_framebuffer_object/fbo-drawbuffers-none glClearBuffer tests for drivers using meta clears (such as Broadwell). Cc: "10.2" <mesa-stable@lists.freedesktop.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77852 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77856 Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Verified.Fixed. |
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.