[Mesa-dev] [PATCH] st/mesa: allow glsl version up to 420

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Mar 24 23:30:35 UTC 2016


radeonsi and nouveau are pretty close to have OpenGL 4.2.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/mesa/state_tracker/st_extensions.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index 2fdaba0..113a5c0 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -848,8 +848,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 >= 410)
-      consts->GLSLVersion = 410;
+   if (glsl_feature_level >= 420)
+      consts->GLSLVersion = 420;
 
    _mesa_override_glsl_version(consts);
 
-- 
2.7.4



More information about the mesa-dev mailing list