summaryrefslogtreecommitdiff
path: root/src/mesa/shader/program_parse_extra.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2009-07-27 17:22:21 -0700
committerIan Romanick <ian.d.romanick@intel.com>2009-07-27 17:22:21 -0700
commitaafd5762593aa01f2d612f4d769d1af383422c1c (patch)
tree89fae75fa23cda5c61a1ae713b749fd407a77afc /src/mesa/shader/program_parse_extra.c
parent41d5696628a5eef62cd671711b33edea9344977d (diff)
ARB prog parser: Add support for GL_MESA_texture_array
This isn't really tested yet as no drivers actually support this extension.
Diffstat (limited to 'src/mesa/shader/program_parse_extra.c')
-rw-r--r--src/mesa/shader/program_parse_extra.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/shader/program_parse_extra.c b/src/mesa/shader/program_parse_extra.c
index f4643d12da..8e4be606f1 100644
--- a/src/mesa/shader/program_parse_extra.c
+++ b/src/mesa/shader/program_parse_extra.c
@@ -102,6 +102,15 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
return 1;
}
}
+ } else if (strncmp(option, "MESA_", 5) == 0) {
+ option += 5;
+
+ if (strcmp(option, "texture_array") == 0) {
+ if (state->ctx->Extensions.MESA_texture_array) {
+ state->option.TexArray = 1;
+ return 1;
+ }
+ }
}
return 0;