Mesa (master): gallium/radeon: make deferred flushes asynchronous

Marek Olšák mareko at kemper.freedesktop.org
Fri Jul 22 20:36:04 UTC 2016


Module: Mesa
Branch: master
Commit: 2e890b535012d76d190776368b7f82aad2668461
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=2e890b535012d76d190776368b7f82aad2668461

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Jul 15 15:51:34 2016 +0200

gallium/radeon: make deferred flushes asynchronous

Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

---

 src/gallium/drivers/radeon/r600_pipe_common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
index cd4908f..647832b 100644
--- a/src/gallium/drivers/radeon/r600_pipe_common.c
+++ b/src/gallium/drivers/radeon/r600_pipe_common.c
@@ -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);




More information about the mesa-commit mailing list