gallium: add PIPE_CAP_DRAW_INFO_START_WITH_USER_INDICES
authorMarek Olšák <marek.olsak@amd.com>
Fri, 14 Feb 2020 21:01:50 +0000 (16:01 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 11 Mar 2020 18:45:28 +0000 (18:45 +0000)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3591>

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

index 2204c07b1fb34c7afbc6eb065f2a0921d72a17af..318bce1a0f07d1a03ac172c64ed987111d93ebfc 100644 (file)
@@ -406,6 +406,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen,
 
    case PIPE_CAP_OPENCL_INTEGER_FUNCTIONS:
    case PIPE_CAP_INTEGER_MULTIPLY_32X16:
+   case PIPE_CAP_DRAW_INFO_START_WITH_USER_INDICES:
       return 0;
    case PIPE_CAP_NIR_IMAGES_AS_DEREF:
       return 1;
index 9d4b451bf5a7a4e3aa0d115ded1c937f7d26c3d9..8301ecbc8f2ea552cf5ad902289ff0b339b037cb 100644 (file)
@@ -571,6 +571,7 @@ The integer capabilities:
 * ``PIPE_CAP_PACKED_STREAM_OUTPUT``: Driver supports packing optimization for stream output (e.g. GL transform feedback captured variables). Defaults to true.
 * ``PIPE_CAP_VIEWPORT_TRANSFORM_LOWERED``: Driver needs the nir_lower_viewport_transform pass to be enabled. This also means that the gl_Position value is modified and should be lowered for transform feedback, if needed. Defaults to false.
 * ``PIPE_CAP_PSIZ_CLAMPED``: Driver needs for the point size to be clamped. Additionally, the gl_PointSize has been modified and its value should be lowered for transform feedback, if needed. Defaults to false.
+* ``PIPE_CAP_DRAW_INFO_START_WITH_USER_INDICES``: pipe_draw_info::start can be non-zero with user indices.
 
 .. _pipe_capf:
 
index b68ebd7cbdb7e8356237eddb3d3a580e8f47375c..5b4598da10347945087328a094b6f99cc7ac4a13 100644 (file)
@@ -160,6 +160,7 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
        case PIPE_CAP_PACKED_UNIFORMS:
        case PIPE_CAP_SHADER_SAMPLES_IDENTICAL:
        case PIPE_CAP_GL_SPIRV:
+       case PIPE_CAP_DRAW_INFO_START_WITH_USER_INDICES:
                return 1;
 
        case PIPE_CAP_QUERY_SO_OVERFLOW:
index 2195d728ef7661c3151d45bf068d5f6fb45eb236..523c81996adb6f41810a9351ae9bee86f56ec7e5 100644 (file)
@@ -918,6 +918,7 @@ enum pipe_cap
    PIPE_CAP_PACKED_STREAM_OUTPUT,
    PIPE_CAP_VIEWPORT_TRANSFORM_LOWERED,
    PIPE_CAP_PSIZ_CLAMPED,
+   PIPE_CAP_DRAW_INFO_START_WITH_USER_INDICES,
 };
 
 /**