freedreno: Stop forcing ALLOW_MAPPED_BUFFERS_DURING_EXEC off.
authorEric Anholt <eric@anholt.net>
Mon, 9 Dec 2019 19:19:14 +0000 (11:19 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 9 Dec 2019 22:13:47 +0000 (14:13 -0800)
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 <robdclark@chromium.org>
src/gallium/drivers/freedreno/freedreno_screen.c

index a55c1bcaeb6fc8043b10fcbafeb3711396abe059..eff95c2672532760f6a0bd737e0f6bfa69d4d888 100644 (file)
@@ -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;