[Mesa-dev] [PATCH 2/2] radeonsi: flush the dma ring in si_flush_from_st
Marek Olšák
maraeo at gmail.com
Fri Mar 14 07:09:08 PDT 2014
Thanks. I pushed these patches.
Marek
On Thu, Mar 13, 2014 at 8:07 PM, Niels Ole Salscheider
<niels_ole at salscheider-online.de> wrote:
> Signed-off-by: Niels Ole Salscheider <niels_ole at salscheider-online.de>
> ---
> src/gallium/drivers/radeonsi/si_pipe.c | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c
> index 827e9fe..401bf6a 100644
> --- a/src/gallium/drivers/radeonsi/si_pipe.c
> +++ b/src/gallium/drivers/radeonsi/si_pipe.c
> @@ -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);
> }
> --
> 1.9.0
>
More information about the mesa-dev
mailing list