gallium/radeon: remove the IB flushing flag
[mesa.git] / src / gallium / drivers / radeon / r600_pipe_common.c
index e7179dc0a463b20f0e865fdea27a4d319795c0e2..daa325dae0453f0254943801723e98dbcb12b319 100644 (file)
@@ -221,13 +221,8 @@ static void r600_flush_dma_ring(void *ctx, unsigned flags,
        struct r600_common_context *rctx = (struct r600_common_context *)ctx;
        struct radeon_winsys_cs *cs = rctx->rings.dma.cs;
 
-       if (!cs->cdw)
-               goto done;
-
-       rctx->rings.dma.flushing = true;
-       rctx->ws->cs_flush(cs, flags, &rctx->last_sdma_fence, 0);
-       rctx->rings.dma.flushing = false;
-done:
+       if (cs->cdw)
+               rctx->ws->cs_flush(cs, flags, &rctx->last_sdma_fence, 0);
        if (fence)
                rctx->ws->fence_reference(fence, rctx->last_sdma_fence);
 }