diff options
author | Christian Gmeiner <[email protected]> | 2016-06-11 21:21:51 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2019-12-21 18:29:30 +0000 |
commit | 5bd6a5c41b1f4e06404cc451491b9314db183006 (patch) | |
tree | 23f766c5cd1cbda073ca44a64c2abbbe74b3f859 | |
parent | 5343124932d297f9104f9f81d5dac6b34637dff1 (diff) |
gallium: add PIPE_CAP_MAX_VERTEX_BUFFERS
Add PIPE_CAP_MAX_VERTEX_BUFFERS param, which defaults to 16.
Signed-off-by: Christian Gmeiner <[email protected]>
Signed-off-by: Paul Cercueil <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2807>
-rw-r--r-- | src/gallium/auxiliary/util/u_screen.c | 3 | ||||
-rw-r--r-- | src/gallium/docs/source/screen.rst | 1 | ||||
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 05dcecd1c27..70eb4a27d74 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -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_*"); } diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index a081bbc9f80..7e6964282f5 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -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: diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 0f6229a57fb..76afb5a311c 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -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, }; /** |