softpipe: Use the default behavior of ALLOW_MAPPED_BUFFERS.
authorEric Anholt <eric@anholt.net>
Mon, 6 Jan 2020 22:35:33 +0000 (14:35 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 19:06:51 +0000 (19:06 +0000)
Since this is a software rasterizer, we really don't care whether the
buffers are "mapped" since it's just malloc.  This will drop a bit of
pointless CPU overhead to throw errors.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3298>

src/gallium/drivers/softpipe/sp_screen.c

index d186aea773811dab2b80c9819725889cb4c55b24..49d571ac185cd62de75677ae26365de335da6c22 100644 (file)
@@ -253,7 +253,6 @@ softpipe_get_param(struct pipe_screen *screen, enum pipe_cap param)
    case PIPE_CAP_PCI_DEVICE:
    case PIPE_CAP_PCI_FUNCTION:
    case PIPE_CAP_GLSL_OPTIMIZE_CONSERVATIVELY:
-   case PIPE_CAP_ALLOW_MAPPED_BUFFERS_DURING_EXECUTION:
       return 0;
    case PIPE_CAP_MAX_GS_INVOCATIONS:
       return 32;