summaryrefslogtreecommitdiff
path: root/glsl_types.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-06-08 16:17:17 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-06-09 11:14:58 -0700
commit0d80f71867e561c541bf8832a182401297972543 (patch)
treec80b0c24092777a7f9132daae70a0aaac706e822 /glsl_types.cpp
parentcc249f79e7df5fa45b119e57cdc9a4887add712b (diff)
Add EXT_texture_array support.
Diffstat (limited to 'glsl_types.cpp')
-rw-r--r--glsl_types.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/glsl_types.cpp b/glsl_types.cpp
index e1beeef..9487819 100644
--- a/glsl_types.cpp
+++ b/glsl_types.cpp
@@ -90,6 +90,15 @@ generate_ARB_texture_rectangle_types(glsl_symbol_table *symtab, bool warn)
}
+static void
+generate_EXT_texture_array_types(glsl_symbol_table *symtab, bool warn)
+{
+ add_types_to_symbol_table(symtab, builtin_EXT_texture_array_types,
+ Elements(builtin_EXT_texture_array_types),
+ warn);
+}
+
+
void
_mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
{
@@ -112,6 +121,12 @@ _mesa_glsl_initialize_types(struct _mesa_glsl_parse_state *state)
generate_ARB_texture_rectangle_types(state->symbols,
state->ARB_texture_rectangle_warn);
}
+
+ if (state->EXT_texture_array_enable && state->language_version < 130) {
+ // These are already included in 130; don't create twice.
+ generate_EXT_texture_array_types(state->symbols,
+ state->EXT_texture_array_warn);
+ }
}