From: Nicolai Hähnle Date: Thu, 13 Apr 2017 19:47:00 +0000 (+0200) Subject: st/mesa: enable ARB_shader_viewport_layer_array X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4127f38baece7a3f2b454c5ca8f2b7cbdefd8b38;p=mesa.git st/mesa: enable ARB_shader_viewport_layer_array Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan --- diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 8b623606dc3..1df2ba76168 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -1129,6 +1129,11 @@ void st_init_extensions(struct pipe_screen *screen, extensions->AMD_vertex_shader_viewport_index = GL_TRUE; } + if (extensions->AMD_vertex_shader_layer && + extensions->AMD_vertex_shader_viewport_index && + screen->get_param(screen, PIPE_CAP_TGSI_TES_LAYER_VIEWPORT)) + extensions->ARB_shader_viewport_layer_array = GL_TRUE; + /* ARB_framebuffer_no_attachments */ if (screen->get_param(screen, PIPE_CAP_FRAMEBUFFER_NO_ATTACHMENT) && ((consts->MaxSamples >= 4 && consts->MaxFramebufferLayers >= 2048) ||