Mesa (master): radeon/uvd: async flush the UVD cs

Christian König deathsimple at kemper.freedesktop.org
Sun Sep 22 11:25:16 UTC 2013


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

Author: Christian König <christian.koenig at amd.com>
Date:   Sat Sep 21 15:34:38 2013 +0200

radeon/uvd: async flush the UVD cs

No need to block for the CS thread here.

Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/drivers/radeon/radeon_uvd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/radeon/radeon_uvd.c b/src/gallium/drivers/radeon/radeon_uvd.c
index 518978e..fa81105 100644
--- a/src/gallium/drivers/radeon/radeon_uvd.c
+++ b/src/gallium/drivers/radeon/radeon_uvd.c
@@ -110,7 +110,7 @@ static void flush(struct ruvd_decoder *dec)
 	while(dec->cs->cdw % 16)
 		pm4[dec->cs->cdw++] = RUVD_PKT2();
 
-	dec->ws->cs_flush(dec->cs, 0, 0);
+	dec->ws->cs_flush(dec->cs, RADEON_FLUSH_ASYNC, 0);
 }
 
 /* add a new set register command to the IB */




More information about the mesa-commit mailing list