radeonsi: flush the dma ring in si_flush_from_st

Signed-off-by: Niels Ole Salscheider <niels_ole@salscheider-online.de>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
Niels Ole Salscheider
2014-03-13 20:07:14 +01:00
committed by Marek Olšák
parent 087b0ff1c1
commit f9901f1ab2
+7
View File
@@ -65,6 +65,13 @@ static void si_flush_from_st(struct pipe_context *ctx,
struct pipe_fence_handle **fence,
unsigned flags)
{
struct si_context *sctx = (struct si_context *)ctx;
if (sctx->b.rings.dma.cs) {
sctx->b.rings.dma.flush(sctx,
flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0);
}
si_flush(ctx, fence,
flags & PIPE_FLUSH_END_OF_FRAME ? RADEON_FLUSH_END_OF_FRAME : 0);
}