radeonsi: remove needless cache flushes at the end of CP DMA operations
authorMarek Olšák <marek.olsak@amd.com>
Fri, 22 Apr 2016 08:18:17 +0000 (10:18 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 28 Apr 2016 10:46:47 +0000 (12:46 +0200)
not needed AFAIK

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_cp_dma.c

index 38e0ee60d648ec1e1ce0993cb61746f1334c1d9c..bca9cc5020eebb48ba53006fcb7de25d00dfdf78 100644 (file)
@@ -206,10 +206,6 @@ static void si_clear_buffer(struct pipe_context *ctx, struct pipe_resource *dst,
                va += byte_count;
        }
 
-       /* Flush the caches again in case the 3D engine has been prefetching
-        * the resource. */
-       sctx->b.flags |= flush_flags;
-
        if (tc_l2_flag)
                r600_resource(dst)->TC_L2_dirty = true;
 }
@@ -336,10 +332,6 @@ void si_copy_buffer(struct si_context *sctx,
        if (realign_size)
                si_cp_dma_realign_engine(sctx, realign_size);
 
-       /* Flush the caches again in case the 3D engine has been prefetching
-        * the resource. */
-       sctx->b.flags |= flush_flags;
-
        if (tc_l2_flag)
                r600_resource(dst)->TC_L2_dirty = true;
 }