Mesa (master): mesa: initialize ARB_transform_feedback2 dispatch

Marek Olšák mareko at kemper.freedesktop.org
Thu Oct 27 02:32:38 PDT 2011


Module: Mesa
Branch: master
Commit: 48dcdcffd61c6c3755d818493bc3b7bdc1260ea5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=48dcdcffd61c6c3755d818493bc3b7bdc1260ea5

Author: Marek Olšák <maraeo at gmail.com>
Date:   Tue Oct 25 16:30:11 2011 +0200

mesa: initialize ARB_transform_feedback2 dispatch

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Eric Anholt <eric at anholt.net>

---

 src/mesa/main/api_exec.c          |    1 +
 src/mesa/main/transformfeedback.c |   10 +++++++++-
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
index 93214dd..1bc39db 100644
--- a/src/mesa/main/api_exec.c
+++ b/src/mesa/main/api_exec.c
@@ -469,6 +469,7 @@ _mesa_create_exec_table(void)
    SET_DepthBoundsEXT(exec, _mesa_DepthBoundsEXT);
 
    /* 352. GL_EXT_transform_feedback */
+   /* ARB 93. GL_ARB_transform_feedback2 */
    _mesa_init_transform_feedback_dispatch(exec);
 
    /* 364. GL_EXT_provoking_vertex */
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index 86fff88..b5fb98e 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -327,6 +327,7 @@ _mesa_init_transform_feedback_functions(struct dd_function_table *driver)
 void
 _mesa_init_transform_feedback_dispatch(struct _glapi_table *disp)
 {
+   /* EXT_transform_feedback */
    SET_BeginTransformFeedbackEXT(disp, _mesa_BeginTransformFeedback);
    SET_EndTransformFeedbackEXT(disp, _mesa_EndTransformFeedback);
    SET_BindBufferRangeEXT(disp, _mesa_BindBufferRange);
@@ -334,6 +335,14 @@ _mesa_init_transform_feedback_dispatch(struct _glapi_table *disp)
    SET_BindBufferOffsetEXT(disp, _mesa_BindBufferOffsetEXT);
    SET_TransformFeedbackVaryingsEXT(disp, _mesa_TransformFeedbackVaryings);
    SET_GetTransformFeedbackVaryingEXT(disp, _mesa_GetTransformFeedbackVarying);
+   /* ARB_transform_feedback2 */
+   SET_BindTransformFeedback(disp, _mesa_BindTransformFeedback);
+   SET_DeleteTransformFeedbacks(disp, _mesa_DeleteTransformFeedbacks);
+   SET_GenTransformFeedbacks(disp, _mesa_GenTransformFeedbacks);
+   SET_IsTransformFeedback(disp, _mesa_IsTransformFeedback);
+   SET_PauseTransformFeedback(disp, _mesa_PauseTransformFeedback);
+   SET_ResumeTransformFeedback(disp, _mesa_ResumeTransformFeedback);
+   SET_DrawTransformFeedback(disp, _mesa_DrawTransformFeedback);
 }
 
 
@@ -932,5 +941,4 @@ _mesa_DrawTransformFeedback(GLenum mode, GLuint name)
    ctx->Driver.DrawTransformFeedback(ctx, mode, obj);
 }
 
-
 #endif /* FEATURE_EXT_transform_feedback */



More information about the mesa-commit mailing list