glsl: allow GLSL compiler version to be overridden to 1.50
authorJordan Justen <jordan.l.justen@intel.com>
Tue, 19 Feb 2013 17:23:51 +0000 (09:23 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Fri, 1 Mar 2013 05:49:59 +0000 (21:49 -0800)
Although GLSL 1.50 compiler support is not available,
this change will allow MESA_GLSL_VERSION_OVERRIDE=150 to be
used while 1.50 support is being developed.

Since no drivers claim 1.50 GLSL support, this change should
only impact Mesa when MESA_GLSL_VERSION_OVERRIDE=150 is set.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/builtin_variables.cpp
src/glsl/glsl_types.cpp

index ccee7746e55cf04b6b3d70addbd4c322b60e623e..53c4c51cd143db81820310edf021fce82e37513a 100644 (file)
@@ -849,6 +849,7 @@ initialize_vs_variables(exec_list *instructions,
          generate_130_vs_variables(instructions, state, true);
          break;
       case 140:
+      case 150:
          generate_130_vs_variables(instructions, state, false);
          break;
       default:
@@ -1140,6 +1141,7 @@ initialize_fs_variables(exec_list *instructions,
          generate_130_fs_variables(instructions, state);
          break;
       case 140:
+      case 150:
          generate_140_fs_variables(instructions, state);
          break;
       default:
index 82aeb84edb4304a69956dd38b017c111cef4ddd0..f78d2a6f8d8cae10552366309a5504f20e54916c 100644 (file)
@@ -373,6 +373,7 @@ _mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
          glsl_type::generate_130_types(state->symbols, true, skip_1d);
          break;
       case 140:
+      case 150:
          glsl_type::generate_140_types(state->symbols);
          break;
       default: