Mesa (transform-feedback3-instanced): st/mesa: expose the new transform feedback extensions

Marek Olšák mareko at kemper.freedesktop.org
Thu Feb 16 18:01:46 PST 2012


Module: Mesa
Branch: transform-feedback3-instanced
Commit: cf49085260ddc0683272614617480046e9fa0980
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cf49085260ddc0683272614617480046e9fa0980

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun Dec 18 04:57:31 2011 +0100

st/mesa: expose the new transform feedback extensions

---

 src/mesa/state_tracker/st_extensions.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
index e495048..89be081 100644
--- a/src/mesa/state_tracker/st_extensions.c
+++ b/src/mesa/state_tracker/st_extensions.c
@@ -339,6 +339,7 @@ void st_init_extensions(struct st_context *st)
       { o(ARB_shadow),                       PIPE_CAP_TEXTURE_SHADOW_MAP               },
       { o(ARB_texture_non_power_of_two),     PIPE_CAP_NPOT_TEXTURES                    },
       { o(ARB_transform_feedback2),          PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME       },
+      { o(ARB_transform_feedback3),          PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS        },
 
       { o(EXT_blend_equation_separate),      PIPE_CAP_BLEND_EQUATION_SEPARATE          },
       { o(EXT_draw_buffers2),                PIPE_CAP_INDEP_BLEND_ENABLE               },
@@ -620,4 +621,9 @@ void st_init_extensions(struct st_context *st)
          break;
       }
    }
+
+   if (ctx->Extensions.ARB_transform_feedback2 &&
+       ctx->Extensions.ARB_draw_instanced) {
+      ctx->Extensions.ARB_transform_feedback_instanced = GL_TRUE;
+   }
 }



More information about the mesa-commit mailing list