mesa/src
Ian Romanick 39865f5c46 mesa: Ignore blits to/from missing buffers
The EXT_framebuffer_object spec (and later specs) say:

     "If a buffer is specified in <mask> and does not exist in both
     the read and draw framebuffers, the corresponding bit is silently
     ignored."

Check for color, depth, and stencil that the source and destination
FBOs have the specified buffers.  If the buffer is missing, remove the
bit from the blit request mask and continue.

Fixes the crash in piglit test 'fbo-missing-attachment-blit from', and
fixes 'fbo-missing-attachment-blit es2 from'.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37739
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Eric Anholt <eric@anholt.net>

NOTE: This is a candidate for the stable branches.
(cherry picked from commit bb4758669c by Marek)
2011-06-12 05:29:18 +02:00
..
driclient mesa: Purge macros NEED_EVENTS and NEED_REPLIES 2010-07-01 13:07:07 -06:00
egl egl: _eglFilterArray should not allocate. 2010-12-06 15:40:37 +08:00
gallium draw: fix edge flag handling in clipper (for unfilled tris/quads/polygons) 2011-06-10 13:09:40 -06:00
glsl mesa: check that flex/bison are installed 2011-06-10 13:07:03 -06:00
glu mesa: fix mesa version string construction 2010-10-19 08:59:27 -06:00
glut scons: Revamp how to specify targets to build. 2010-11-01 13:30:22 +00:00
glw Makefiles: Don't complain if depend file to be included doesn't exist. 2010-07-21 13:19:33 -07:00
glx apple: Fix build failures in applegl_glx.c 2011-06-06 12:00:16 -04:00
mapi glapi: Regenerate for GL_ARB_ES2_compatibility. 2011-02-28 13:55:34 -08:00
mesa mesa: Ignore blits to/from missing buffers 2011-06-12 05:29:18 +02:00
Makefile
SConscript Remove talloc from the SCons build system. 2011-02-07 15:02:39 -08:00