diff options
author | Nicolai Hähnle <[email protected]> | 2017-04-13 21:47:00 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-14 22:50:09 +0200 |
commit | 4127f38baece7a3f2b454c5ca8f2b7cbdefd8b38 (patch) | |
tree | 240cc436be1acd68a6f75890e44699b787a82e2f /src/mesa | |
parent | f3d2cf6c1ff6ccf16c2a471f8f05c4ed5a734ae4 (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/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 5 |
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) || |