Mesa (master): svga/winsys: Make sure a flush always inserts and returns a fence if requested

Thomas Hellstrom thomash at kemper.freedesktop.org
Fri Oct 14 07:55:39 UTC 2011


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

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Tue Oct 11 15:34:37 2011 +0200

svga/winsys: Make sure a flush always inserts and returns a fence if requested

Needed for throttling.

Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Jakob Bornecrant <jakob at vmware.com>

---

 src/gallium/winsys/svga/drm/vmw_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/winsys/svga/drm/vmw_context.c b/src/gallium/winsys/svga/drm/vmw_context.c
index 666e198..b5ca841 100644
--- a/src/gallium/winsys/svga/drm/vmw_context.c
+++ b/src/gallium/winsys/svga/drm/vmw_context.c
@@ -158,7 +158,7 @@ vmw_swc_flush(struct svga_winsys_context *swc,
       throttle_us = vswc->throttle_set ?
 	 vswc->throttle_us : vswc->vws->default_throttle_us;
 
-      if (vswc->command.used)
+      if (vswc->command.used || pfence != NULL)
          vmw_ioctl_command(vswc->vws,
 			   vswc->base.cid,
 			   throttle_us,




More information about the mesa-commit mailing list