diff options
author | Marek Olšák <[email protected]> | 2015-08-28 23:52:47 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-09-01 21:51:13 +0200 |
commit | 5bb0ad7ccc74e3aa69a1d55d2f7935587288312c (patch) | |
tree | 7a028c33da3a8ac8ab5db576135ade82795e57eb /src/gallium/drivers/radeonsi/si_cp_dma.c | |
parent | e191c58324ebd5c37223a5a2c16701d236bd9cb4 (diff) |
radeonsi: call si_init_atom for remaining radeonsi atoms
I need to initialize more atom IDs.
This adds 4 more si_init_atom calls, which simplifies the code.
(si_init_atom needs a different context type of the emit functions though)
Reviewed-by: Alex Deucher <[email protected]>
Acked-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_cp_dma.c')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_cp_dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_cp_dma.c b/src/gallium/drivers/radeonsi/si_cp_dma.c index 7bdac97eaa4..8dd12f63e63 100644 --- a/src/gallium/drivers/radeonsi/si_cp_dma.c +++ b/src/gallium/drivers/radeonsi/si_cp_dma.c @@ -166,7 +166,7 @@ static void si_clear_buffer(struct pipe_context *ctx, struct pipe_resource *dst, /* Flush the caches for the first copy only. * Also wait for the previous CP DMA operations. */ if (sctx->b.flags) { - si_emit_cache_flush(&sctx->b, NULL); + si_emit_cache_flush(sctx, NULL); dma_flags |= SI_CP_DMA_RAW_WAIT; /* same as WAIT_UNTIL=CP_DMA_IDLE */ } @@ -230,7 +230,7 @@ void si_copy_buffer(struct si_context *sctx, /* Flush the caches for the first copy only. Also wait for old CP DMA packets to complete. */ if (sctx->b.flags) { - si_emit_cache_flush(&sctx->b, NULL); + si_emit_cache_flush(sctx, NULL); sync_flags |= SI_CP_DMA_RAW_WAIT; } |