gallium/radeon: create and return a fence in the flush function
[mesa.git] / src / gallium / drivers / r300 / r300_context.c
index 0116d6c0683e884199c6ce592310762775e69301..7ae355189fc60354958b9553c1a4c7f3d78729c8 100644 (file)
@@ -123,11 +123,12 @@ static void r300_destroy_context(struct pipe_context* context)
     FREE(r300);
 }
 
-static void r300_flush_callback(void *data, unsigned flags)
+static void r300_flush_callback(void *data, unsigned flags,
+                               struct pipe_fence_handle **fence)
 {
     struct r300_context* const cs_context_copy = data;
 
-    r300_flush(&cs_context_copy->context, flags, NULL);
+    r300_flush(&cs_context_copy->context, flags, fence);
 }
 
 #define R300_INIT_ATOM(atomname, atomsize) \