Commit b5947984 authored by Ilia Mirkin's avatar Ilia Mirkin

st/mesa: allow glsl version up to 410, enable ARB_shader_precision

Signed-off-by: Ilia Mirkin's avatarIlia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 2d4a890c
......@@ -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. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment