mesa/src
Marek Olšák 9baa45f78b st/mesa: bind NULL colorbuffers as specified by glDrawBuffers
An example why it is required:

    Let's say there's a fragment shader writing to gl_FragData[0..1].
    The user calls: glDrawBuffers(2, {GL_NONE, GL_COLOR_ATTACHMENT0});

    That means gl_FragData[0] is unused and gl_FragData[1] is written
    to GL_COLOR_ATTACHMENT0.

st/mesa was skipping the GL_NONE draw buffer, therefore gl_FragData[0]
was written to GL_COLOR_ATTACHMENT0, which was wrong.

This commit fixes it, but drivers must also be fixed not to crash when
binding NULL colorbuffers. There is also a new set of piglit tests for this.

The MSAA state also had to be fixed not to crash when reading fb->cbufs[0].

Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-13 15:48:07 +01:00
..
egl egl_dri2: call dri2_add_configs_for_visuals after extensions set 2014-01-13 07:59:56 +02:00
gallium st/mesa: bind NULL colorbuffers as specified by glDrawBuffers 2014-01-13 15:48:07 +01:00
gbm egl: break instead of looping after driver is found 2013-12-19 12:44:11 -07:00
getopt
glsl glsl: Index into ctx->Const.Program[] rather than using ad-hoc code. 2014-01-09 09:31:19 -08:00
glx glx: check memory allocations in __glXInitVertexArrayState() 2014-01-06 10:23:26 -07:00
gtest gtest: enable subdir-objects to prevent automake warnings 2013-11-16 14:01:27 +00:00
hgl haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00
mapi glx: Add missing null check in __glXNewIndirectAPI() 2014-01-06 10:23:12 -07:00
mesa st/mesa: bind NULL colorbuffers as specified by glDrawBuffers 2014-01-13 15:48:07 +01:00
Makefile.am gbm: Link to libwayland-drm if Wayland EGL platform is enabled 2013-08-12 15:16:22 -07:00
SConscript haiku libGL: Move from gallium target to src/hgl 2014-01-06 15:50:21 -06:00