gallium: add PIPE_CAP_VIEWPORT_MASK
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 11 Apr 2020 03:53:18 +0000 (23:53 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 16 Apr 2020 00:12:48 +0000 (20:12 -0400)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4529>

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

index 98418b32e09e70b8934eb8134e17f1e89b6686d6..2ff5725f34d3dafb47f6c9124851a5ef92f43021 100644 (file)
@@ -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:
index 567e76cfd802e9787cadacaeffb50793c3391394..a16e4994903ae4f37b738c6965a3f7f71733db72 100644 (file)
@@ -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:
 
index 477e12175aefbac74b7f4c4cfc1aa0db4c8f3a03..2d21d1d4b432f7a072f533f6323f30435ec29efb 100644 (file)
@@ -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,
 };
 
 /**