Mesa (master): swr: Use the default behavior of ALLOW_MAPPED_BUFFERS.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jul 22 19:17:35 UTC 2020


Module: Mesa
Branch: master
Commit: c32f723a1a61414208f6a4513fc717c09b6fed78
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c32f723a1a61414208f6a4513fc717c09b6fed78

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jan  6 14:43:59 2020 -0800

swr: Use the default behavior of ALLOW_MAPPED_BUFFERS.

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: Jan Zielinski <jan.zielinski at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3298>

---

 src/gallium/drivers/swr/swr_screen.cpp | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
index f4450c7a888..20a10004ab2 100644
--- a/src/gallium/drivers/swr/swr_screen.cpp
+++ b/src/gallium/drivers/swr/swr_screen.cpp
@@ -307,7 +307,6 @@ swr_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;



More information about the mesa-commit mailing list