Module: Mesa
Branch: main
Commit: 1ad51f05c289ece72c8ebce01e469fd2ace8b50a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1ad51f05c289ece72c8ebce01e469fd2ace8b50a

Author: Alyssa Rosenzweig <[email protected]>
Date:   Fri Oct 28 22:36:52 2022 -0400

softpipe: Advertise PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT

It's a software rasterizer, all buffers are necessarily persistent and
coherent. There are no staging buffers in transfer_map and no sync/flush
operations, so this is trivial.

Signed-off-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Emma Anholt <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19392>

---

 docs/features.txt                        | 2 +-
 src/gallium/drivers/softpipe/sp_screen.c | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/features.txt b/docs/features.txt
index a85da4c6524..dac663f585a 100644
--- a/docs/features.txt
+++ b/docs/features.txt
@@ -195,7 +195,7 @@ GL 4.3, GLSL 4.30 -- all DONE: freedreno/a6xx, i965/gen8+, 
nvc0, r600, radeonsi,
 GL 4.4, GLSL 4.40 -- all DONE: i965/gen8+, nvc0, r600, radeonsi, llvmpipe, zink
 
   GL_MAX_VERTEX_ATTRIB_STRIDE                           DONE (all drivers)
-  GL_ARB_buffer_storage                                 DONE (freedreno, i965, 
nv50, v3d, vc4, lima, panfrost, asahi, d3d12)
+  GL_ARB_buffer_storage                                 DONE (freedreno, i965, 
nv50, v3d, vc4, lima, panfrost, asahi, d3d12, softpipe)
   GL_ARB_clear_texture                                  DONE (i965, nv50, 
softpipe, virgl)
   GL_ARB_enhanced_layouts                               DONE (freedreno/a3xx+, 
i965, nv50, softpipe, virgl)
   - compile-time constant expressions                   DONE
diff --git a/src/gallium/drivers/softpipe/sp_screen.c 
b/src/gallium/drivers/softpipe/sp_screen.c
index e6941de0936..e3a12e9f265 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -232,6 +232,7 @@ softpipe_get_param(struct pipe_screen *screen, enum 
pipe_cap param)
    case PIPE_CAP_MAX_TEXTURE_GATHER_COMPONENTS:
       return 4;
    case PIPE_CAP_TEXTURE_GATHER_SM5:
+   case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT:
    case PIPE_CAP_TEXTURE_QUERY_LOD:
       return 1;
    case PIPE_CAP_VS_WINDOW_SPACE_POSITION:

Reply via email to