From 4127f38baece7a3f2b454c5ca8f2b7cbdefd8b38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 13 Apr 2017 21:47:00 +0200 Subject: [PATCH] st/mesa: enable ARB_shader_viewport_layer_array MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Edward O'Callaghan --- src/mesa/state_tracker/st_extensions.c | 5 +++++ 1 file changed, 5 insertions(+) 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) || -- 2.30.2