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>
This commit is contained in:
Thomas Hellstrom 2011-10-11 15:34:37 +02:00
parent 23c41233ce
commit 5a6ca7e9f2
1 changed files with 1 additions and 1 deletions

View File

@ -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,