summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_cp_dma.c
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2016-04-22 10:18:17 +0200
committerMarek Olšák <marek.olsak@amd.com>2016-04-28 12:46:47 +0200
commit7e7710a068a7c1e9095eb8e718c56d925d2f0164 (patch)
tree5aaea257180e9e8103f9236a8a27cb2298df6ba3 /src/gallium/drivers/radeonsi/si_cp_dma.c
parent7d49b459b64e8cad2210c2ffc409b4efe6ea2214 (diff)
downloadexternal_mesa3d-7e7710a068a7c1e9095eb8e718c56d925d2f0164.zip
external_mesa3d-7e7710a068a7c1e9095eb8e718c56d925d2f0164.tar.gz
external_mesa3d-7e7710a068a7c1e9095eb8e718c56d925d2f0164.tar.bz2
radeonsi: remove needless cache flushes at the end of CP DMA operations
not needed AFAIK Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_cp_dma.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_cp_dma.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c
index 38e0ee6..bca9cc5 100644
--- a/src/gallium/drivers/radeonsi/si_cp_dma.c
+++ b/src/gallium/drivers/radeonsi/si_cp_dma.c
@@ -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;
}