* referred.
*/
boolean preemptive_flush;
-
- boolean throttle_set;
- uint32_t throttle_us;
};
struct pipe_fence_handle *fence = NULL;
unsigned i;
enum pipe_error ret;
- uint32_t throttle_us;
ret = pb_validate_validate(vswc->validate);
assert(ret == PIPE_OK);
*reloc->where = ptr;
}
- throttle_us = vswc->throttle_set ?
- vswc->throttle_us : vswc->vws->default_throttle_us;
-
if (vswc->command.used || pfence != NULL)
vmw_ioctl_command(vswc->vws,
vswc->base.cid,
- throttle_us,
+ 0,
vswc->command.buffer,
vswc->command.used,
&fence);
return &vswc->base;
}
-
-
-void
-vmw_svga_context_set_throttling(struct pipe_context *pipe,
- uint32_t throttle_us)
-{
- struct svga_winsys_context *swc = svga_winsys_context(pipe);
- struct vmw_svga_winsys_context *vswc = vmw_svga_winsys_context(swc);
-
- vswc->throttle_us = throttle_us;
- vswc->throttle_set = TRUE;
-}
struct svga_winsys_context *
vmw_svga_winsys_context_create(struct svga_winsys_screen *sws);
-void
-vmw_svga_context_set_throttling(struct pipe_context *pipe,
- uint32_t throttle_us);
-
#endif /* VMW_CONTEXT_H_ */
vmw_ioctl_cleanup(vws);
FREE(vws);
}
-
-void
-vmw_winsys_screen_set_throttling(struct pipe_screen *screen,
- uint32_t throttle_us)
-{
- struct vmw_winsys_screen *vws =
- vmw_winsys_screen(svga_winsys_screen(screen));
-
- vws->default_throttle_us = throttle_us;
-}