radeonsi: use PIPE_BIND_DRI_PRIME instead of is_dri_blit_image
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 15 Oct 2021 12:34:31 +0000 (14:34 +0200)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Mon, 18 Oct 2021 15:16:53 +0000 (17:16 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>

src/gallium/drivers/radeonsi/si_blit.c

index 7f17402..a51ff78 100644 (file)
@@ -1211,7 +1211,7 @@ static void si_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
       return;
    }
 
-   if (info->is_dri_blit_image && sdst->surface.is_linear &&
+   if ((info->dst.resource->bind & PIPE_BIND_DRI_PRIME) && sdst->surface.is_linear &&
        sctx->chip_class >= GFX7 && sdst->surface.flags & RADEON_SURF_IMPORTED) {
       struct si_texture *ssrc = (struct si_texture *)info->src.resource;
       /* Use SDMA or async compute when copying to a DRI_PRIME imported linear surface. */