gallium: add PIPE_CAP_MAX_VERTEX_BUFFERS
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Sat, 11 Jun 2016 19:21:51 +0000 (21:21 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 21 Dec 2019 18:29:30 +0000 (18:29 +0000)
Add PIPE_CAP_MAX_VERTEX_BUFFERS param, which defaults to 16.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807>

src/gallium/auxiliary/util/u_screen.c
src/gallium/docs/source/screen.rst
src/gallium/include/pipe/p_defines.h

index 05dcecd1c27c77b56de8d5f1a524a279e122276b..70eb4a27d748317ee5f0733a0f6388d97f7be1f6 100644 (file)
@@ -401,6 +401,9 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
    case PIPE_CAP_CLIP_PLANES:
       return 1;
 
+   case PIPE_CAP_MAX_VERTEX_BUFFERS:
+      return 16;
+
    default:
       unreachable("bad PIPE_CAP_*");
    }
index a081bbc9f80909de718b20b45e6ad798767fb7be..7e6964282f59eeb360c616b1702b381718223f22 100644 (file)
@@ -564,6 +564,7 @@ The integer capabilities:
   as opposed to writing gl_PointSize for every point.
 * ``PIPE_CAP_TWO_SIDED_COLOR``: Driver supports two-sided coloring.
 * ``PIPE_CAP_CLIP_PLANES``: Driver supports user-defined clip-planes.
+* ``PIPE_CAP_MAX_VERTEX_BUFFERS``: Number of supported vertex buffers.
 
 .. _pipe_capf:
 
index 0f6229a57fb51ce1f7baeb842c2190ff1ca23a6e..76afb5a311c549dedd6b2bdb45a01861c6328cd2 100644 (file)
@@ -909,6 +909,7 @@ enum pipe_cap
    PIPE_CAP_POINT_SIZE_FIXED,
    PIPE_CAP_TWO_SIDED_COLOR,
    PIPE_CAP_CLIP_PLANES,
+   PIPE_CAP_MAX_VERTEX_BUFFERS,
 };
 
 /**