summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-04-13 21:47:00 +0200
committerNicolai Hähnle <[email protected]>2017-04-14 22:50:09 +0200
commit4127f38baece7a3f2b454c5ca8f2b7cbdefd8b38 (patch)
tree240cc436be1acd68a6f75890e44699b787a82e2f /src
parentf3d2cf6c1ff6ccf16c2a471f8f05c4ed5a734ae4 (diff)
st/mesa: enable ARB_shader_viewport_layer_array
Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_extensions.c5
1 files changed, 5 insertions, 0 deletions
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) ||