summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program_parse_extra.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-04-13 12:07:31 -0700
committerEric Anholt <[email protected]>2011-04-13 18:07:01 -0700
commitfb6e39737a24f9652b6cdc10067736b8915c61f9 (patch)
tree8eff149e0b3e8db8d3c92a4bde639d57eae541cf /src/mesa/program/program_parse_extra.c
parent28cec9e832b716b84c11ddabfcee74e0daf6ec49 (diff)
mesa: Add support for OPTION ATI_draw_buffers to ARB_fp.
Tested by piglit ati_draw_buffers-arbfp. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/program/program_parse_extra.c')
-rw-r--r--src/mesa/program/program_parse_extra.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/program/program_parse_extra.c b/src/mesa/program/program_parse_extra.c
index ae98b782b70..4d928483e16 100644
--- a/src/mesa/program/program_parse_extra.c
+++ b/src/mesa/program/program_parse_extra.c
@@ -229,6 +229,16 @@ _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
}
}
}
+ } else if (strncmp(option, "ATI_", 4) == 0) {
+ option += 4;
+
+ if (strcmp(option, "draw_buffers") == 0) {
+ /* Don't need to check extension availability because all Mesa-based
+ * drivers support GL_ATI_draw_buffers.
+ */
+ state->option.DrawBuffers = 1;
+ return 1;
+ }
} else if (strncmp(option, "NV_fragment_program", 19) == 0) {
option += 19;