Mesa (main): radeonsi/blit: relax conditions to use sdma copy for prime buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Feb 8 00:50:26 UTC 2022
Module: Mesa
Branch: main
Commit: 413bf889e70b298eebd4402c42ac056a5965f820
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=413bf889e70b298eebd4402c42ac056a5965f820
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Wed Jan 19 11:38:28 2022 +0100
radeonsi/blit: relax conditions to use sdma copy for prime buffers
We don't need to check if it's imported: PIPE_BIND_DRI_PRIME is enough.
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14615>
---
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 80e7af2832e..6ed50dfda74 100644
--- a/src/gallium/drivers/radeonsi/si_blit.c
+++ b/src/gallium/drivers/radeonsi/si_blit.c
@@ -1235,7 +1235,7 @@ static void si_blit(struct pipe_context *ctx, const struct pipe_blit_info *info)
}
if ((info->dst.resource->bind & PIPE_BIND_PRIME_BLIT_DST) && sdst->surface.is_linear &&
- sctx->chip_class >= GFX7 && sdst->surface.flags & RADEON_SURF_IMPORTED) {
+ sctx->chip_class >= GFX7) {
struct si_texture *ssrc = (struct si_texture *)info->src.resource;
/* Use SDMA or async compute when copying to a DRI_PRIME imported linear surface. */
bool async_copy = info->dst.box.x == 0 && info->dst.box.y == 0 && info->dst.box.z == 0 &&
More information about the mesa-commit
mailing list