r600g: pad the DMA CS to a multiple of 8 dwords
[mesa.git] / src / mesa / main / shared.h
index e59177e968e51f1c93d27250c5adc113906b3efb..3fe4578cf311e657d59e3104f3de6361d86a8b8f 100644 (file)
 #ifndef SHARED_H
 #define SHARED_H
 
+struct gl_context;
 
-struct gl_shared_state *
-_mesa_alloc_shared_state(GLcontext *ctx);
+void
+_mesa_reference_shared_state(struct gl_context *ctx,
+                             struct gl_shared_state **ptr,
+                             struct gl_shared_state *state);
 
 
-void
-_mesa_free_shared_state(GLcontext *ctx, struct gl_shared_state *shared);
+struct gl_shared_state *
+_mesa_alloc_shared_state(struct gl_context *ctx);
 
 
 #endif