-#include "util/u_upload_mgr.h"
-
#include "brw_context.h"
+#include "brw_screen.h"
#include "brw_batchbuffer.h"
+#include "util/u_upload_mgr.h"
+
+
/* All batchbuffer flushes must go through this function.
struct pipe_fence_handle **fence )
{
brw_context_flush( brw_context( pipe ) );
- *fence = NULL;
+ if (fence)
+ *fence = NULL;
}
-
void brw_pipe_flush_init( struct brw_context *brw )
{
brw->base.flush = brw_flush;