diff options
author | Marek Olšák <[email protected]> | 2016-12-27 16:12:05 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-05 18:43:24 +0100 |
commit | 9e1aa81dfeced2381aa0df73758dd76f2722d857 (patch) | |
tree | b77dedf4281b6f83a1d0ecc8ca16285569bd1b40 /src/gallium/drivers/radeonsi/cik_sdma.c | |
parent | 3be83364405da8d5b7085512fcd80c0d910dffd9 (diff) |
gallium/radeon: prevent SDMA stalls by detecting RAW hazards in need_dma_space
Call r600_dma_emit_wait_idle only when there is a possibility of
a read-after-write hazard. Buffers not yet used by the SDMA IB don't
have to wait.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/cik_sdma.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/cik_sdma.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/radeonsi/cik_sdma.c b/src/gallium/drivers/radeonsi/cik_sdma.c index 648b1ca7687..bee35cd8212 100644 --- a/src/gallium/drivers/radeonsi/cik_sdma.c +++ b/src/gallium/drivers/radeonsi/cik_sdma.c @@ -67,7 +67,6 @@ static void cik_sdma_copy_buffer(struct si_context *ctx, src_offset += csize; size -= csize; } - r600_dma_emit_wait_idle(&ctx->b); } static void cik_sdma_clear_buffer(struct pipe_context *ctx, @@ -108,7 +107,6 @@ static void cik_sdma_clear_buffer(struct pipe_context *ctx, offset += csize; size -= csize; } - r600_dma_emit_wait_idle(&sctx->b); } static unsigned minify_as_blocks(unsigned width, unsigned level, unsigned blk_w) @@ -251,8 +249,6 @@ static bool cik_sdma_copy_texture(struct si_context *sctx, radeon_emit(cs, (copy_width - 1) | ((copy_height - 1) << 16)); radeon_emit(cs, (copy_depth - 1)); } - - r600_dma_emit_wait_idle(&sctx->b); return true; } @@ -417,8 +413,6 @@ static bool cik_sdma_copy_texture(struct si_context *sctx, radeon_emit(cs, (copy_width_aligned - 1) | ((copy_height - 1) << 16)); radeon_emit(cs, (copy_depth - 1)); } - - r600_dma_emit_wait_idle(&sctx->b); return true; } } @@ -515,8 +509,6 @@ static bool cik_sdma_copy_texture(struct si_context *sctx, ((copy_height_aligned - 8) << 16)); radeon_emit(cs, (copy_depth - 1)); } - - r600_dma_emit_wait_idle(&sctx->b); return true; } } |