[Mesa-dev] [PATCH 2/8] st/mesa: allow GLSL 1.50 and 3.30 to be exposed

Marek Olšák maraeo at gmail.com
Sun Nov 24 02:55:23 PST 2013


From: Marek Olšák <marek.olsak at amd.com>

---
 src/mesa/state_tracker/st_extensions.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index e8d0902..28171d9 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -594,7 +594,11 @@ void st_init_extensions(struct st_context *st)
    /* Figure out GLSL support. */
    glsl_feature_level = screen->get_param(screen, PIPE_CAP_GLSL_FEATURE_LEVEL);
 
-   if (glsl_feature_level >= 140) {
+   if (glsl_feature_level >= 330) {
+      ctx->Const.GLSLVersion = 330;
+   } else if (glsl_feature_level >= 150) {
+      ctx->Const.GLSLVersion = 150;
+   } else if (glsl_feature_level >= 140) {
       ctx->Const.GLSLVersion = 140;
    } else if (glsl_feature_level >= 130) {
       ctx->Const.GLSLVersion = 130;
-- 
1.8.3.2



More information about the mesa-dev mailing list