mesa/src
Ian Romanick bb4758669c 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.
2011-06-07 18:29:52 -07:00
..
driclient mesa: Purge macros NEED_EVENTS and NEED_REPLIES 2010-07-01 13:07:07 -06:00
egl egl_dri2: Add missing header 2011-06-07 17:59:16 -04:00
gallium r600g : fix incorrect size computation in r600_query_result 2011-06-07 17:40:37 -04:00
getopt getopt: Make code more portable. 2011-01-12 16:54:21 +00:00
glsl glsl: fixed printing of structure constants. 2011-06-03 12:48:49 -06:00
glu sgi: Fix MSVC build. 2011-04-27 19:06:07 +01: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 dri2: protect dri2FlushFrontBuffer against NULL buffers. 2011-06-06 12:35:59 -07:00
mapi glapi: regenerated files 2011-06-02 17:55:13 -06:00
mesa mesa: Ignore blits to/from missing buffers 2011-06-07 18:29:52 -07:00
Makefile
SConscript scons: Build glu. 2011-04-23 13:16:03 +01:00