r600g: remove redundant r600_flush_dma_from_winsys
authorMarek Olšák <marek.olsak@amd.com>
Fri, 11 Apr 2014 20:40:14 +0000 (22:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 16 Apr 2014 12:02:51 +0000 (14:02 +0200)
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/r600_pipe_common.c

index efb78cf0caa7378a827f28bc912f42670abcff2d..92f43deba54ecd6c5a307ac0992278e451e2f232 100644 (file)
@@ -67,13 +67,6 @@ static void r600_flush_dma_ring(void *ctx, unsigned flags)
        rctx->rings.dma.flushing = false;
 }
 
-static void r600_flush_dma_from_winsys(void *ctx, unsigned flags)
-{
-       struct r600_common_context *rctx = (struct r600_common_context *)ctx;
-
-       rctx->rings.dma.flush(rctx, flags);
-}
-
 bool r600_common_context_init(struct r600_common_context *rctx,
                              struct r600_common_screen *rscreen)
 {
@@ -110,7 +103,7 @@ bool r600_common_context_init(struct r600_common_context *rctx,
 
        if (rscreen->info.r600_has_dma && !(rscreen->debug_flags & DBG_NO_ASYNC_DMA)) {
                rctx->rings.dma.cs = rctx->ws->cs_create(rctx->ws, RING_DMA,
-                                                        r600_flush_dma_from_winsys,
+                                                        r600_flush_dma_ring,
                                                         rctx, NULL);
                rctx->rings.dma.flush = r600_flush_dma_ring;
        }