Mesa (7.10): mesa: Add support for OPTION ATI_draw_buffers to ARB_fp.

Ian Romanick idr at kemper.freedesktop.org
Mon Jun 13 17:08:55 PDT 2011


Module: Mesa
Branch: 7.10
Commit: 2b7ee98588bf5adcf78099c1ebb9836dc18f7a5b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2b7ee98588bf5adcf78099c1ebb9836dc18f7a5b

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Apr 13 12:07:31 2011 -0700

mesa: Add support for OPTION ATI_draw_buffers to ARB_fp.

Tested by piglit ati_draw_buffers-arbfp.
Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
(cherry picked from commit fb6e39737a24f9652b6cdc10067736b8915c61f9)

---

 src/mesa/program/program_parse_extra.c |   10 ++++++++++
 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 ae98b78..4d92848 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;
 



More information about the mesa-commit mailing list