Mesa (main): radeonsi: use PIPE_BIND_DRI_PRIME instead of is_dri_blit_image
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Oct 18 15:59:44 UTC 2021
Module: Mesa
Branch: main
Commit: ec2eff8f3897f78b027742a47d1a8b705965f655
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ec2eff8f3897f78b027742a47d1a8b705965f655
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Fri Oct 15 14:34:31 2021 +0200
radeonsi: use PIPE_BIND_DRI_PRIME instead of is_dri_blit_image
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13362>
---
src/gallium/drivers/radeonsi/si_blit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
index 7f17402230c..a51ff789b59 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -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. */
More information about the mesa-commit
mailing list