Mesa (master): i965: Don' t _swrast_BlitFramebuffer when doing CopyTexSubImage.

Kenneth Graunke kwg at kemper.freedesktop.org
Tue May 13 22:31:34 UTC 2014


Module: Mesa
Branch: master
Commit: bd44ac8b5ca08016bb064b37edaec95eccfdbcd5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd44ac8b5ca08016bb064b37edaec95eccfdbcd5

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Sun May 11 17:20:08 2014 -0700

i965: Don't _swrast_BlitFramebuffer when doing CopyTexSubImage.

The point of copytexsubimage_using_blit_framebuffer is to use a hardware
accelerated BlitFramebuffer path.  If that fails, we shouldn't do a
swrast blit---we should try our CTSI fallback code.

This is especially important for i965 and GLES, where we don't even
create a swrast context.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77705
Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
Cc: "10.2" <mesa-stable at lists.freedesktop.org>

---

 src/mesa/drivers/common/meta_blit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/drivers/common/meta_blit.c b/src/mesa/drivers/common/meta_blit.c
index beb1ea5..e5a0a9a 100644
--- a/src/mesa/drivers/common/meta_blit.c
+++ b/src/mesa/drivers/common/meta_blit.c
@@ -732,7 +732,7 @@ _mesa_meta_BlitFramebuffer(struct gl_context *ctx,
    _mesa_meta_end(ctx);
 
 fallback:
-   if (mask) {
+   if (mask && !ctx->Meta->Blit.no_ctsi_fallback) {
       _swrast_BlitFramebuffer(ctx, srcX0, srcY0, srcX1, srcY1,
                               dstX0, dstY0, dstX1, dstY1, mask, filter);
    }




More information about the mesa-commit mailing list