Lines Matching refs:screen_priv

59     present_screen_priv_ptr     screen_priv = present_screen_priv(screen);  in present_flip_pending_pixmap()  local
61 if (!screen_priv) in present_flip_pending_pixmap()
64 if (!screen_priv->flip_pending) in present_flip_pending_pixmap()
67 return screen_priv->flip_pending->pixmap; in present_flip_pending_pixmap()
83 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_check_flip() local
88 if (!screen_priv) in present_check_flip()
91 if (!screen_priv->info) in present_check_flip()
98 if (!screen_priv->info->flip) in present_check_flip()
104 window_pixmap != screen_priv->flip_pixmap && in present_check_flip()
134 if (screen_priv->info->version >= 1 && screen_priv->info->check_flip2) { in present_check_flip()
135 if (!(*screen_priv->info->check_flip2) (crtc, window, pixmap, sync_flip, reason)) { in present_check_flip()
139 } else if (screen_priv->info->check_flip) { in present_check_flip()
140 if (!(*screen_priv->info->check_flip) (crtc, window, pixmap, sync_flip)) { in present_check_flip()
157 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_flip() local
159 return (*screen_priv->info->flip) (crtc, event_id, target_msc, pixmap, sync_flip); in present_flip()
163 present_scmd_get_crtc(present_screen_priv_ptr screen_priv, WindowPtr window) in present_scmd_get_crtc() argument
165 if (!screen_priv->info) in present_scmd_get_crtc()
168 return (*screen_priv->info->get_crtc)(window); in present_scmd_get_crtc()
172 present_scmd_query_capabilities(present_screen_priv_ptr screen_priv) in present_scmd_query_capabilities() argument
174 if (!screen_priv->info) in present_scmd_query_capabilities()
177 return screen_priv->info->capabilities; in present_scmd_query_capabilities()
183 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_get_ust_msc() local
188 return (*screen_priv->info->get_ust_msc)(crtc, ust, msc); in present_get_ust_msc()
195 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_flush() local
197 if (!screen_priv) in present_flush()
200 if (!screen_priv->info) in present_flush()
203 (*screen_priv->info->flush) (window); in present_flush()
219 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_queue_vblank() local
220 ret = (*screen_priv->info->queue_vblank) (crtc, event_id, msc); in present_queue_vblank()
282 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_flip_idle() local
284 if (screen_priv->flip_pixmap) { in present_flip_idle()
285 present_pixmap_idle(screen_priv->flip_pixmap, screen_priv->flip_window, in present_flip_idle()
286 screen_priv->flip_serial, screen_priv->flip_idle_fence); in present_flip_idle()
287 if (screen_priv->flip_idle_fence) in present_flip_idle()
288 present_fence_destroy(screen_priv->flip_idle_fence); in present_flip_idle()
289 dixDestroyPixmap(screen_priv->flip_pixmap, screen_priv->flip_pixmap->drawable.id); in present_flip_idle()
290 screen_priv->flip_crtc = NULL; in present_flip_idle()
291 screen_priv->flip_window = NULL; in present_flip_idle()
292 screen_priv->flip_serial = 0; in present_flip_idle()
293 screen_priv->flip_pixmap = NULL; in present_flip_idle()
294 screen_priv->flip_idle_fence = NULL; in present_flip_idle()
301 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_restore_screen_pixmap() local
306 if (screen_priv->flip_pending) { in present_restore_screen_pixmap()
307 flip_window = screen_priv->flip_pending->window; in present_restore_screen_pixmap()
308 flip_pixmap = screen_priv->flip_pending->pixmap; in present_restore_screen_pixmap()
310 flip_window = screen_priv->flip_window; in present_restore_screen_pixmap()
311 flip_pixmap = screen_priv->flip_pixmap; in present_restore_screen_pixmap()
335 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_set_abort_flip() local
337 if (!screen_priv->flip_pending->abort_flip) { in present_set_abort_flip()
339 screen_priv->flip_pending->abort_flip = TRUE; in present_set_abort_flip()
346 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_unflip() local
348 assert (!screen_priv->unflip_event_id); in present_unflip()
349 assert (!screen_priv->flip_pending); in present_unflip()
353 screen_priv->unflip_event_id = ++present_event_id; in present_unflip()
354 DebugPresent(("u %" PRIu64 "\n", screen_priv->unflip_event_id)); in present_unflip()
355 (*screen_priv->info->unflip) (screen, screen_priv->unflip_event_id); in present_unflip()
362 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_flip_notify() local
369 assert (vblank == screen_priv->flip_pending); in present_flip_notify()
376 screen_priv->flip_crtc = vblank->crtc; in present_flip_notify()
377 screen_priv->flip_window = vblank->window; in present_flip_notify()
378 screen_priv->flip_serial = vblank->serial; in present_flip_notify()
379 screen_priv->flip_pixmap = vblank->pixmap; in present_flip_notify()
380 screen_priv->flip_sync = vblank->sync_flip; in present_flip_notify()
381 screen_priv->flip_idle_fence = vblank->idle_fence; in present_flip_notify()
386 screen_priv->flip_pending = NULL; in present_flip_notify()
425 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_event_notify() local
427 if (event_id == screen_priv->unflip_event_id) { in present_event_notify()
429 screen_priv->unflip_event_id = 0; in present_event_notify()
445 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_check_flip_window() local
447 present_vblank_ptr flip_pending = screen_priv->flip_pending; in present_check_flip_window()
457 if (screen_priv->unflip_event_id) in present_check_flip_window()
473 if (window == screen_priv->flip_window) { in present_check_flip_window()
474 …if (!present_check_flip(screen_priv->flip_crtc, window, screen_priv->flip_pixmap, screen_priv->fli… in present_check_flip_window()
496 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_scmd_can_window_flip() local
498 if (!screen_priv) in present_scmd_can_window_flip()
501 if (!screen_priv->info) in present_scmd_can_window_flip()
505 if (!screen_priv->info->flip) in present_scmd_can_window_flip()
511 window_pixmap != screen_priv->flip_pixmap && in present_scmd_can_window_flip()
543 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_execute() local
549 if (screen_priv->flip_pending || screen_priv->unflip_event_id) { in present_execute()
552 screen_priv->flip_pending, screen_priv->unflip_event_id)); in present_execute()
575 screen_priv->flip_pending = vblank; in present_execute()
587 if (screen_priv->flip_window && screen_priv->flip_window != window) in present_execute()
588 present_set_tree_pixmap(screen_priv->flip_window, in present_execute()
589 screen_priv->flip_pixmap, in present_execute()
609 screen_priv->flip_pending = NULL; in present_execute()
615 if (screen_priv->flip_pending) { in present_execute()
619 if (window == screen_priv->flip_pending->window) in present_execute()
621 } else if (!screen_priv->unflip_event_id) { in present_execute()
625 if (window == screen_priv->flip_window) in present_execute()
667 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_scmd_pixmap() local
672 if (!screen_priv || !screen_priv->info) in present_scmd_pixmap()
746 screen_priv->info ? &screen_priv->info->capabilities : NULL, in present_scmd_pixmap()
782 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_scmd_abort_vblank() local
784 (*screen_priv->info->abort_vblank) (crtc, event_id, msc); in present_scmd_abort_vblank()
807 present_screen_priv_ptr screen_priv = present_screen_priv(screen); in present_scmd_flip_destroy() local
810 if (screen_priv->flip_pending) in present_scmd_flip_destroy()
818 present_scmd_init_mode_hooks(present_screen_priv_ptr screen_priv) in present_scmd_init_mode_hooks() argument
820 screen_priv->query_capabilities = &present_scmd_query_capabilities; in present_scmd_init_mode_hooks()
821 screen_priv->get_crtc = &present_scmd_get_crtc; in present_scmd_init_mode_hooks()
823 screen_priv->check_flip = &present_check_flip; in present_scmd_init_mode_hooks()
824 screen_priv->check_flip_window = &present_check_flip_window; in present_scmd_init_mode_hooks()
825 screen_priv->can_window_flip = &present_scmd_can_window_flip; in present_scmd_init_mode_hooks()
827 screen_priv->present_pixmap = &present_scmd_pixmap; in present_scmd_init_mode_hooks()
828 screen_priv->create_event_id = &present_scmd_create_event_id; in present_scmd_init_mode_hooks()
830 screen_priv->queue_vblank = &present_queue_vblank; in present_scmd_init_mode_hooks()
831 screen_priv->flush = &present_flush; in present_scmd_init_mode_hooks()
832 screen_priv->re_execute = &present_re_execute; in present_scmd_init_mode_hooks()
834 screen_priv->abort_vblank = &present_scmd_abort_vblank; in present_scmd_init_mode_hooks()
835 screen_priv->flip_destroy = &present_scmd_flip_destroy; in present_scmd_init_mode_hooks()