From f8714b2852785cee692d84f2bfc1903d3061f803 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Wed, 3 Mar 2021 11:49:06 -0800 Subject: [PATCH] freedreno: Remove dead-cells MBR workaround With threaded-context we won't have a chance to apply the workaround in the backend driver. But the previous commit moves it to a driconf configured workaround in mesa/st, so we can drop this now. Signed-off-by: Rob Clark Part-of: --- src/gallium/drivers/freedreno/freedreno_resource.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 9043d3687d1..0e3a8e95cf8 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -727,15 +727,6 @@ fd_resource_transfer_map(struct pipe_context *pctx, } } - /* Sometimes games do silly things like MapBufferRange(UNSYNC|DISCARD_x) - * In this case, the the UNSYNC is a bit redundant, but the games rely - * on us rebinding/replacing the backing storage rather than going down - * the UNSYNC path (ie. honoring DISCARD_x first before UNSYNC). So - * since we handle DISCARD_RANGE inside the !UNSYNC path: - */ - if (usage & (PIPE_MAP_DISCARD_RANGE | PIPE_MAP_DISCARD_WHOLE_RESOURCE)) - usage &= ~PIPE_MAP_UNSYNCHRONIZED; - if (ctx->in_shadow && !(usage & PIPE_MAP_READ)) usage |= PIPE_MAP_UNSYNCHRONIZED;