radeonsi: use PIPE_BIND_DRI_PRIME instead of is_dri_blit_image

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-10-15 14:34:31 +02:00
parent 1863b761a6
commit ec2eff8f38
1 changed files with 1 additions and 1 deletions

View 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. */