diff --git a/docs/gallium/screen.rst b/docs/gallium/screen.rst index daa016dc000..8596d7cd4f3 100644 --- a/docs/gallium/screen.rst +++ b/docs/gallium/screen.rst @@ -654,6 +654,7 @@ The integer capabilities: * ``PIPE_CAP_SHADER_SUBGROUP_SUPPORTED_STAGES``: Bitmask of shader stages which support GL_KHR_shader_subgroup_* intrinsics. * ``PIPE_CAP_SHADER_SUBGROUP_SUPPORTED_FEATURES``: Bitmask of shader subgroup features listed in :ext:`GL_KHR_shader_subgroup`. * ``PIPE_CAP_SHADER_SUBGROUP_QUAD_ALL_STAGES``: Whether shader subgroup quad operations are supported by shader stages other than fragment shader. +* ``PIPE_CAP_MULTIVIEW``: Whether multiview rendering of array textures is supported. .. _pipe_capf: diff --git a/src/gallium/auxiliary/util/u_screen.c b/src/gallium/auxiliary/util/u_screen.c index 70057fb1bd0..a211980e92f 100644 --- a/src/gallium/auxiliary/util/u_screen.c +++ b/src/gallium/auxiliary/util/u_screen.c @@ -100,6 +100,7 @@ u_pipe_screen_get_param_defaults(struct pipe_screen *pscreen, case PIPE_CAP_FRAGMENT_COLOR_CLAMPED: case PIPE_CAP_SEAMLESS_CUBE_MAP: case PIPE_CAP_SEAMLESS_CUBE_MAP_PER_TEXTURE: + case PIPE_CAP_MULTIVIEW: return 0; case PIPE_CAP_SUPPORTED_PRIM_MODES_WITH_RESTART: diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 61d712d8747..512fc21ae8d 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -974,6 +974,7 @@ enum pipe_cap PIPE_CAP_SHADER_SUBGROUP_SUPPORTED_STAGES, PIPE_CAP_SHADER_SUBGROUP_SUPPORTED_FEATURES, PIPE_CAP_SHADER_SUBGROUP_QUAD_ALL_STAGES, + PIPE_CAP_MULTIVIEW, PIPE_CAP_LAST, /* XXX do not add caps after PIPE_CAP_LAST! */ }; diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 4cc5a43f654..0406da11c6b 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -908,6 +908,7 @@ void st_init_extensions(struct pipe_screen *screen, { o(INTEL_blackhole_render), PIPE_CAP_FRONTEND_NOOP }, { o(ARM_shader_framebuffer_fetch_depth_stencil), PIPE_CAP_FBFETCH_ZS }, { o(MESA_texture_const_bandwidth), PIPE_CAP_HAS_CONST_BW }, + { o(OVR_multiview) , PIPE_CAP_MULTIVIEW }, }; /* Required: render target and sampler support */