[Mesa-dev] [PATCH 27/37] state_tracker: Initialize the metaops code so that Mesa core can use it.

Eric Anholt eric at anholt.net
Mon Aug 15 11:53:57 PDT 2011


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

diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 6d4bc54..e994e2e 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -29,6 +29,7 @@
 #include "main/context.h"
 #include "main/samplerobj.h"
 #include "main/shaderobj.h"
+#include "drivers/common/meta.h"
 #include "program/prog_cache.h"
 #include "vbo/vbo.h"
 #include "glapi/glapi.h"
@@ -183,6 +184,8 @@ struct st_context *st_create_context(gl_api api, struct pipe_context *pipe,
       return NULL;
    }
 
+   _mesa_meta_init(ctx);
+
    /* XXX: need a capability bit in gallium to query if the pipe
     * driver prefers DP4 or MUL/MAD for vertex transformation.
     */
@@ -255,6 +258,7 @@ void st_destroy_context( struct st_context *st )
 
    st_destroy_program_variants(st);
 
+   _mesa_meta_free(ctx);
    _mesa_free_context_data(ctx);
 
    st_destroy_context_priv(st);
-- 
1.7.5.4



More information about the mesa-dev mailing list