From 10ec4689836151e3d6dbc44a4cdf81a91f9e8b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 28 Mar 2024 17:31:08 -0400 Subject: [PATCH] radeonsi: don't call resource_copy_region in pipe->blit It's slower because it forces preservation of NaNs. Reviewed-by: Pierre-Eric Pelloux-Prayer Part-of: --- src/gallium/drivers/radeonsi/si_blit.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c index 7998f417fba..df797f3bf27 100644 --- a/src/gallium/drivers/radeonsi/si_blit.c +++ b/src/gallium/drivers/radeonsi/si_blit.c @@ -1268,16 +1268,6 @@ static void si_blit(struct pipe_context *ctx, const struct pipe_blit_info *info) if (unlikely(sctx->sqtt_enabled)) sctx->sqtt_next_event = EventCmdCopyImage; - /* Using compute for copying to a linear texture in GTT is much faster than - * going through RBs (render backends). This improves DRI PRIME performance. - */ - if (util_can_blit_via_copy_region(info, false, sctx->render_cond != NULL)) { - si_resource_copy_region(ctx, info->dst.resource, info->dst.level, - info->dst.box.x, info->dst.box.y, info->dst.box.z, - info->src.resource, info->src.level, &info->src.box); - return; - } - if (si_compute_blit(sctx, info, false)) return;