summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2011-10-11 15:34:37 +0200
committerThomas Hellstrom <thellstrom@vmware.com>2011-10-14 09:53:01 +0200
commit5a6ca7e9f24939cfacf2e8cd163a4efa9550ce1f (patch)
tree80880ba0e27cdf12c5a09a3fe98e5cbe41c587ec /src/gallium/winsys
parent23c41233ce9ac13ba60242f9e839d5b13d1ea803 (diff)
svga/winsys: Make sure a flush always inserts and returns a fence if requested
Needed for throttling. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Jakob Bornecrant <jakob@vmware.com>
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_context.c2
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 666e198954b..b5ca8416440 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,