zink: try copy region first for non-resolve blits

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15853>
This commit is contained in:
Mike Blumenkrantz 2022-03-01 11:59:48 -05:00 committed by Marge Bot
parent 327ca3e5ef
commit cf3f3791e3
1 changed files with 3 additions and 2 deletions

View File

@ -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",