gallium/radeon: make deferred flushes asynchronous
authorMarek Olšák <marek.olsak@amd.com>
Fri, 15 Jul 2016 13:51:34 +0000 (15:51 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 22 Jul 2016 20:34:49 +0000 (22:34 +0200)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/drivers/radeon/r600_pipe_common.c

index cd4908fd3b975da631f2ddb6092743bc63671a03..647832b5f6ebf032fb3dab9c1f060125c2ccaac9 100644 (file)
@@ -269,6 +269,8 @@ static void r600_flush_from_st(struct pipe_context *ctx,
 
        if (flags & PIPE_FLUSH_END_OF_FRAME)
                rflags |= RADEON_FLUSH_END_OF_FRAME;
+       if (flags & PIPE_FLUSH_DEFERRED)
+               rflags |= RADEON_FLUSH_ASYNC;
 
        if (rctx->dma.cs) {
                rctx->dma.flush(rctx, rflags, fence ? &sdma_fence : NULL);