From 10da0a9d18a15044ca92553ed17adb7c445394c8 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 9 Dec 2019 11:19:14 -0800 Subject: [PATCH] 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 --- src/gallium/drivers/freedreno/freedreno_screen.c | 3 --- 1 file changed, 3 deletions(-) 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; -- 2.30.2