diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-08-30 03:56:13 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-09-01 21:51:15 +0200 |
commit | 28b34b474e330be881d15a34859811e9f5e36eb5 (patch) | |
tree | ef9944023a535af27a5522decd65e9913da9371b /src/gallium/drivers/radeonsi/si_cp_dma.c | |
parent | aad43f0768edc0711d5f54ea79b052fb4f1d3321 (diff) | |
download | external_mesa3d-28b34b474e330be881d15a34859811e9f5e36eb5.zip external_mesa3d-28b34b474e330be881d15a34859811e9f5e36eb5.tar.gz external_mesa3d-28b34b474e330be881d15a34859811e9f5e36eb5.tar.bz2 |
radeonsi: don't send IB dword usage to si_need_cs_space
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_cp_dma.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_cp_dma.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c index 7b8a843..32ab6a9 100644 --- a/src/gallium/drivers/radeonsi/si_cp_dma.c +++ b/src/gallium/drivers/radeonsi/si_cp_dma.c @@ -155,8 +155,7 @@ static void si_clear_buffer(struct pipe_context *ctx, struct pipe_resource *dst, unsigned byte_count = MIN2(size, CP_DMA_MAX_BYTE_COUNT); unsigned dma_flags = tc_l2_flag; - si_need_cs_space(sctx, 7 + (sctx->b.flags ? sctx->cache_flush.num_dw : 0), - FALSE); + si_need_cs_space(sctx); /* This must be done after need_cs_space. */ radeon_add_to_buffer_list(&sctx->b, &sctx->b.rings.gfx, @@ -226,7 +225,7 @@ void si_copy_buffer(struct si_context *sctx, unsigned sync_flags = tc_l2_flag; unsigned byte_count = MIN2(size, CP_DMA_MAX_BYTE_COUNT); - si_need_cs_space(sctx, 7 + (sctx->b.flags ? sctx->cache_flush.num_dw : 0), FALSE); + si_need_cs_space(sctx); /* Flush the caches for the first copy only. Also wait for old CP DMA packets to complete. */ if (sctx->b.flags) { |