diff options
author | Nicolai Hähnle <[email protected]> | 2016-10-06 23:10:22 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-10-12 18:50:10 +0200 |
commit | 789119d21212da3891ed57018ec1af197a48977c (patch) | |
tree | 99f8f508f57a6c58094213fa62b874079855f76b /src/mesa/state_tracker | |
parent | b5b4aa42ba189c8aa2339ead12784c4feb76bdbb (diff) |
st/mesa: enable ARB_enhanced_layouts and turn the cap on
v2: mark llvmpipe & softpipe properly as well (Jason Wood)
Reviewed-by: Edward O'Callaghan <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index b9befa1ac57..b87a3db1870 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -892,6 +892,13 @@ void st_init_extensions(struct pipe_screen *screen, extensions->AMD_vertex_shader_layer = GL_TRUE; } + if (consts->GLSLVersion >= 140) { + if (screen->get_param(screen, PIPE_CAP_TGSI_ARRAY_COMPONENTS) && + screen->get_shader_param(screen, PIPE_SHADER_FRAGMENT, + PIPE_SHADER_CAP_PREFERRED_IR) == PIPE_SHADER_IR_TGSI) + extensions->ARB_enhanced_layouts = GL_TRUE; + } + if (consts->GLSLVersion >= 130) { consts->NativeIntegers = GL_TRUE; consts->MaxClipPlanes = 8; |