Mesa (main): zink: try copy region first for non-resolve blits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 12 05:08:01 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Tue Mar  1 11:59:48 2022 -0500

zink: try copy region first for non-resolve blits

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15853>

---

 src/gallium/drivers/zink/zink_blit.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c
index dedaf3cfccb..270a09afdf2 100644
--- a/src/gallium/drivers/zink/zink_blit.c
+++ b/src/gallium/drivers/zink/zink_blit.c
@@ -307,13 +307,14 @@ zink_blit(struct pipe_context *pctx,
          if (blit_resolve(ctx, info, &needs_present_readback))
             goto end;
       } else {
+         if (try_copy_region(pctx, info))
+            goto end;
          if (blit_native(ctx, info, &needs_present_readback))
             goto end;
       }
    }
 
-   if (try_copy_region(pctx, info))
-      goto end;
+
 
    if (!util_blitter_is_blit_supported(ctx->blitter, info)) {
       debug_printf("blit unsupported %s -> %s\n",



More information about the mesa-commit mailing list