Mesa (master): freedreno: remove blit_via_copy_region()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Jan 3 13:12:41 UTC 2019
Module: Mesa
Branch: master
Commit: 67a7f6f24433beb5795bea5325700f50d845ed64
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=67a7f6f24433beb5795bea5325700f50d845ed64
Author: Rob Clark <robdclark at gmail.com>
Date: Wed Jan 2 11:35:02 2019 -0500
freedreno: remove blit_via_copy_region()
If we hit the memcpy() path for copy_region(), that will try to do a
transfer_map(), which goes badly for blits to/from staging triggered
by transfer_map() or transfer_unmap().
We could possibly add fd_blit2() which has allow_transfer_map param,
and call that for staging blits. But I'm not really sure if trying
the blit via copy_region() is very useful. At least for newer gens
that implement fd_context::blit(), it probably isn't.
Signed-off-by: Rob Clark <robdclark at gmail.com>
---
src/gallium/drivers/freedreno/freedreno_resource.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c
index f1e439b713..838881cf15 100644
--- a/src/gallium/drivers/freedreno/freedreno_resource.c
+++ b/src/gallium/drivers/freedreno/freedreno_resource.c
@@ -979,10 +979,6 @@ fd_blit(struct pipe_context *pctx, const struct pipe_blit_info *blit_info)
if (info.render_condition_enable && !fd_render_condition_check(pctx))
return;
- if (util_try_blit_via_copy_region(pctx, &info)) {
- return; /* done */
- }
-
if (info.mask & PIPE_MASK_S) {
DBG("cannot blit stencil, skipping");
info.mask &= ~PIPE_MASK_S;
More information about the mesa-commit
mailing list