mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
meta: Fallback for glBlitFramebuffer from a multisample surface
NOTE: This is a candidate for the 8.0 branch.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44818
(cherry picked from commit b48d4b64e9)
This commit is contained in:
parent
442dc31fa7
commit
7f5d3f7ed2
1 changed files with 6 additions and 1 deletions
|
|
@ -1451,7 +1451,12 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx,
|
|||
struct vertex verts[4];
|
||||
GLboolean newTex;
|
||||
|
||||
if (srcW > maxTexSize || srcH > maxTexSize) {
|
||||
/* In addition to falling back if the blit size is larger than the maximum
|
||||
* texture size, fallback if the source is multisampled. This fallback can
|
||||
* be removed once Mesa gets support ARB_texture_multisample.
|
||||
*/
|
||||
if (srcW > maxTexSize || srcH > maxTexSize
|
||||
|| ctx->ReadBuffer->Visual.samples > 0) {
|
||||
/* XXX avoid this fallback */
|
||||
_swrast_BlitFramebuffer(ctx, srcX0, srcY0, srcX1, srcY1,
|
||||
dstX0, dstY0, dstX1, dstY1, mask, filter);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue