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:
parent
23c41233ce
commit
5a6ca7e9f2
|
@ -158,7 +158,7 @@ vmw_swc_flush(struct svga_winsys_context *swc,
|
||||||
throttle_us = vswc->throttle_set ?
|
throttle_us = vswc->throttle_set ?
|
||||||
vswc->throttle_us : vswc->vws->default_throttle_us;
|
vswc->throttle_us : vswc->vws->default_throttle_us;
|
||||||
|
|
||||||
if (vswc->command.used)
|
if (vswc->command.used || pfence != NULL)
|
||||||
vmw_ioctl_command(vswc->vws,
|
vmw_ioctl_command(vswc->vws,
|
||||||
vswc->base.cid,
|
vswc->base.cid,
|
||||||
throttle_us,
|
throttle_us,
|
||||||
|
|
Loading…
Reference in New Issue