From: Ilia Mirkin Date: Sat, 11 Apr 2020 03:53:18 +0000 (-0400) Subject: gallium: add PIPE_CAP_VIEWPORT_MASK X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0d0a3c916595860749220bcb3a4b1cc408ddd34;p=mesa.git gallium: add PIPE_CAP_VIEWPORT_MASK Signed-off-by: Ilia Mirkin Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 98418b32e09..2ff5725f34d 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -259,6 +259,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_POLYGON_OFFSET_UNITS_UNSCALED: case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS: case PIPE_CAP_VIEWPORT_SWIZZLE: + case PIPE_CAP_VIEWPORT_MASK: case PIPE_CAP_MIXED_COLOR_DEPTH_BITS: case PIPE_CAP_TGSI_ARRAY_COMPONENTS: case PIPE_CAP_STREAM_OUTPUT_INTERLEAVE_BUFFERS: diff --git a/src/gallium/docs/source/screen.rst b/src/gallium/docs/source/screen.rst index 567e76cfd80..a16e4994903 100644 --- a/src/gallium/docs/source/screen.rst +++ b/src/gallium/docs/source/screen.rst @@ -575,6 +575,7 @@ The integer capabilities: * ``PIPE_CAP_GL_BEGIN_END_BUFFER_SIZE``: Buffer size used to upload vertices for glBegin/glEnd. * ``PIPE_CAP_VIEWPORT_SWIZZLE``: Whether pipe_viewport_state::swizzle can be used to specify pre-clipping swizzling of coordinates (see GL_NV_viewport_swizzle). * ``PIPE_CAP_SYSTEM_SVM``: True if all application memory can be shared with the GPU without explicit mapping. +* ``PIPE_CAP_VIEWPORT_MASK``: Whether ``TGSI_SEMANTIC_VIEWPORT_MASK`` and ``TGSI_PROPERTY_LAYER_VIEWPORT_RELATIVE`` are supported (see GL_NV_viewport_array2). .. _pipe_capf: diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 477e12175ae..2d21d1d4b43 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -936,6 +936,7 @@ enum pipe_cap PIPE_CAP_GL_BEGIN_END_BUFFER_SIZE, PIPE_CAP_VIEWPORT_SWIZZLE, PIPE_CAP_SYSTEM_SVM, + PIPE_CAP_VIEWPORT_MASK, }; /**