diff options
author | Ian Romanick <[email protected]> | 2011-06-07 12:38:39 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-06-07 18:29:52 -0700 |
commit | bb4758669c82f8979a56524db1c04ce662c783d8 (patch) | |
tree | 9589ca10c46017242a3d09428fb262cb006d00bd /src/gallium/winsys/svga/drm | |
parent | 7f9c17aaa82f5a8a1d5f077eba4d5889d3c3b298 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
NOTE: This is a candidate for the stable branches.
Diffstat (limited to 'src/gallium/winsys/svga/drm')
0 files changed, 0 insertions, 0 deletions