From: Eric Anholt Date: Mon, 9 Dec 2019 19:19:14 +0000 (-0800) Subject: freedreno: Stop forcing ALLOW_MAPPED_BUFFERS_DURING_EXEC off. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=10da0a9d18a15044ca92553ed17adb7c445394c8;p=mesa.git freedreno: Stop forcing ALLOW_MAPPED_BUFFERS_DURING_EXEC off. The default is to not throw GL errors when drawing with mapped buffers, but we were forcing it on for unclear reasons. Internally we keep all our buffers mapped anyway, so it should be a no-op other than reducing CPU overhead (.23% in a perf report for WebGL fishtank) Reviewed-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index a55c1bcaeb6..eff95c26725 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -318,9 +318,6 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) if (is_a6xx(screen)) return 1; return 0; - case PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION: - return 0; - case PIPE_CAP_CONTEXT_PRIORITY_MASK: return screen->priority_mask;