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 <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28725>
This commit is contained in:
Marek Olšák 2024-03-28 17:31:08 -04:00 committed by Marge Bot
parent 26a5955821
commit 10ec468983

View file

@ -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;