summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_variables.cpp
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-08 13:49:15 -0800
committerEric Anholt <[email protected]>2012-03-15 08:33:54 -0700
commitc5ff9a8b9e3cafb3764e620add2900656c59606b (patch)
treea2f52e99c78adbb65191463547f7354f87910170 /src/glsl/builtin_variables.cpp
parentac5a5b324335195b5a5ed98775ce442c573e7e1d (diff)
glsl: Hook up the current GLSL 1.30 types and builtins for 1.40.
This gets a basic #version 140 shader compiling. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/builtin_variables.cpp')
-rw-r--r--src/glsl/builtin_variables.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp
index 66b3abdd84c..26deeebdfc1 100644
--- a/src/glsl/builtin_variables.cpp
+++ b/src/glsl/builtin_variables.cpp
@@ -759,6 +759,9 @@ initialize_vs_variables(exec_list *instructions,
case 130:
generate_130_vs_variables(instructions, state);
break;
+ case 140:
+ generate_130_vs_variables(instructions, state);
+ break;
}
if (state->ARB_draw_instanced_enable)
@@ -985,6 +988,9 @@ initialize_fs_variables(exec_list *instructions,
case 130:
generate_130_fs_variables(instructions, state);
break;
+ case 140:
+ generate_130_fs_variables(instructions, state);
+ break;
}
if (state->ARB_shader_stencil_export_enable)