diff options
author | Ilia Mirkin <[email protected]> | 2015-04-26 16:14:36 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-04-28 12:48:22 -0400 |
commit | b5947984cd7c90bf1409e15a2425fa1d4dc2be15 (patch) | |
tree | 3460f2eeaba54e720abc6df3631d817747ef41e5 | |
parent | 2d4a890c0b763ae3feb7af9255d6d92baa9cfe57 (diff) |
st/mesa: allow glsl version up to 410, enable ARB_shader_precision
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
-rw-r--r-- | src/mesa/state_tracker/st_extensions.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 25932dd4cb8..82e4a30093f 100644 --- a/src/mesa/state_tracker/st_extensions.c +++ b/src/mesa/state_tracker/st_extensions.c @@ -657,8 +657,8 @@ void st_init_extensions(struct pipe_screen *screen, glsl_feature_level = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL); consts->GLSLVersion = glsl_feature_level; - if (glsl_feature_level >= 330) - consts->GLSLVersion = 330; + if (glsl_feature_level >= 410) + consts->GLSLVersion = 410; _mesa_override_glsl_version(consts); @@ -669,6 +669,8 @@ void st_init_extensions(struct pipe_screen *screen, if (glsl_feature_level >= 400) extensions->ARB_gpu_shader5 = GL_TRUE; + if (glsl_feature_level >= 410) + extensions->ARB_shader_precision = GL_TRUE; /* This extension needs full OpenGL 3.2, but we don't know if that's * supported at this point. Only check the GLSL version. */ |