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 <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9316>
This commit is contained in:
Rob Clark
2021-03-03 11:49:06 -08:00
committed by Marge Bot
parent e6f2e8b3fc
commit f8714b2852
@@ -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;