Exemplo n.º 1
0
static void
vmw_context_throttle(CustomizerPtr cust,
                     struct pipe_context *pipe,
                     enum xorg_throttling_reason reason)
{
    switch (reason) {
    case THROTTLE_RENDER:
        vmw_winsys_screen_set_throttling(pipe->screen, 20000);
        break;
    default:
        vmw_winsys_screen_set_throttling(pipe->screen, 0);
    }
}
Exemplo n.º 2
0
static void
vmw_context_no_throttle(CustomizerPtr cust,
                        struct pipe_context *pipe,
                        enum xorg_throttling_reason reason)
{
    vmw_winsys_screen_set_throttling(pipe->screen, 0);
}
Exemplo n.º 3
0
static struct pipe_screen *
create_screen(int fd)
{
   struct svga_winsys_screen *sws;
   struct pipe_screen *screen;

   sws = svga_drm_winsys_screen_create(fd);
   if (!sws)
      return NULL;

   screen = svga_screen_create(sws);
   if (!screen)
      return NULL;

   vmw_winsys_screen_set_throttling(screen, 10);
   screen = sw_screen_wrap(screen);

   screen = debug_screen_wrap(screen);

   return screen;
}