mesa/src
Kenneth Graunke c2c15a9a37 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>
(cherry picked from commit 9701c6984d)
2014-05-07 09:49:13 -07:00
..
egl egl: Don't attempt to redefine stdint.h types with VS 2010. 2014-05-02 22:04:47 +01:00
gallium radeonsi: add support for Mullins asics. 2014-05-02 17:30:27 -04:00
gbm gbm: cleanup __DRI*extension handling 2014-04-28 19:13:38 +01:00
getopt
glsl glsl: fix bogus layout qualifier warnings 2014-05-07 09:48:34 -07:00
glx glx: Conditionally compile GLX_MESA_query_renderer DRI3 support 2014-05-02 23:20:34 +01:00
gtest gtest: Update to 1.7.0. 2014-04-14 00:06:53 -07:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
loader loader: don't limit the non-udev path to only android 2014-04-05 12:17:28 +01:00
mapi mesa: Add core support for the GL_INTEL_performance_query extension. 2014-05-02 10:07:04 -07:00
mesa meta: Only clear the requested color buffers. 2014-05-07 09:49:13 -07:00
Makefile.am src/build: Add getopt to distribution. 2014-04-07 09:41:02 -07:00
SConscript loader: introduce the loader util lib 2014-01-18 18:47:27 +00:00