Lines Matching refs:xwl_screen

80     struct xwl_screen *xwl_screen;  member
94 xwl_eglstream_get(struct xwl_screen *xwl_screen) in xwl_eglstream_get() argument
96 return dixLookupPrivate(&xwl_screen->screen->devPrivates, in xwl_eglstream_get()
174 xwl_eglstream_cleanup(struct xwl_screen *xwl_screen) in xwl_eglstream_cleanup() argument
177 xwl_eglstream_get(xwl_screen); in xwl_eglstream_cleanup()
277 struct xwl_screen *xwl_screen = xwl_pixmap->xwl_screen; in xwl_eglstream_unref_pixmap_stream() local
286 xwl_glamor_egl_make_current(xwl_screen); in xwl_eglstream_unref_pixmap_stream()
289 eglMakeCurrent(xwl_screen->egl_display, in xwl_eglstream_unref_pixmap_stream()
291 xwl_screen->egl_context); in xwl_eglstream_unref_pixmap_stream()
295 eglDestroySurface(xwl_screen->egl_display, xwl_pixmap->surface); in xwl_eglstream_unref_pixmap_stream()
297 eglDestroyStreamKHR(xwl_screen->egl_display, xwl_pixmap->stream); in xwl_eglstream_unref_pixmap_stream()
325 struct xwl_screen *xwl_screen = xwl_screen_get(window->drawable.pScreen); in xwl_eglstream_set_window_pixmap() local
327 xwl_eglstream_get(xwl_screen); in xwl_eglstream_set_window_pixmap()
347 xwl_screen->screen->SetWindowPixmap = xwl_eglstream->SetWindowPixmap; in xwl_eglstream_set_window_pixmap()
348 (*xwl_screen->screen->SetWindowPixmap)(window, pixmap); in xwl_eglstream_set_window_pixmap()
349 xwl_eglstream->SetWindowPixmap = xwl_screen->screen->SetWindowPixmap; in xwl_eglstream_set_window_pixmap()
350 xwl_screen->screen->SetWindowPixmap = xwl_eglstream_set_window_pixmap; in xwl_eglstream_set_window_pixmap()
398 struct xwl_screen *xwl_screen = data; in xwl_eglstream_consumer_ready_callback() local
400 xwl_eglstream_get(xwl_screen); in xwl_eglstream_consumer_ready_callback()
420 xwl_glamor_egl_make_current(xwl_screen); in xwl_eglstream_consumer_ready_callback()
424 xwl_screen->egl_display, xwl_eglstream->config, in xwl_eglstream_consumer_ready_callback()
445 xwl_eglstream_queue_pending_stream(struct xwl_screen *xwl_screen, in xwl_eglstream_queue_pending_stream() argument
449 xwl_eglstream_get(xwl_screen); in xwl_eglstream_queue_pending_stream()
470 pending_stream->cb = wl_display_sync(xwl_screen->display); in xwl_eglstream_queue_pending_stream()
472 xwl_screen); in xwl_eglstream_queue_pending_stream()
486 xwl_eglstream_create_pending_stream(struct xwl_screen *xwl_screen, in xwl_eglstream_create_pending_stream() argument
490 xwl_eglstream_get(xwl_screen); in xwl_eglstream_create_pending_stream()
501 xwl_glamor_egl_make_current(xwl_screen); in xwl_eglstream_create_pending_stream()
503 xwl_pixmap->xwl_screen = xwl_screen; in xwl_eglstream_create_pending_stream()
505 xwl_pixmap->stream = eglCreateStreamKHR(xwl_screen->egl_display, NULL); in xwl_eglstream_create_pending_stream()
506 stream_fd = eglGetStreamFileDescriptorKHR(xwl_screen->egl_display, in xwl_eglstream_create_pending_stream()
525 xwl_eglstream_queue_pending_stream(xwl_screen, window, pixmap); in xwl_eglstream_create_pending_stream()
533 struct xwl_screen *xwl_screen = xwl_window->xwl_screen; in xwl_glamor_eglstream_allow_commits() local
537 (*xwl_screen->screen->GetWindowPixmap)(xwl_window->window); in xwl_glamor_eglstream_allow_commits()
558 xwl_eglstream_create_pending_stream(xwl_screen, xwl_window->window, in xwl_glamor_eglstream_allow_commits()
568 struct xwl_screen *xwl_screen = xwl_window->xwl_screen; in xwl_glamor_eglstream_post_damage() local
570 xwl_eglstream_get(xwl_screen); in xwl_glamor_eglstream_post_damage()
582 xwl_glamor_egl_make_current(xwl_screen); in xwl_glamor_eglstream_post_damage()
587 eglMakeCurrent(xwl_screen->egl_display, in xwl_glamor_eglstream_post_damage()
589 xwl_screen->egl_context); in xwl_glamor_eglstream_post_damage()
609 eglSwapBuffersWithDamageKHR(xwl_screen->egl_display, in xwl_glamor_eglstream_post_damage()
612 eglSwapBuffers(xwl_screen->egl_display, xwl_pixmap->surface); in xwl_glamor_eglstream_post_damage()
645 xwl_glamor_eglstream_init_wl_registry(struct xwl_screen *xwl_screen, in xwl_glamor_eglstream_init_wl_registry() argument
651 xwl_eglstream_get(xwl_screen); in xwl_glamor_eglstream_init_wl_registry()
659 xwl_screen); in xwl_glamor_eglstream_init_wl_registry()
672 xwl_glamor_eglstream_has_wl_interfaces(struct xwl_screen *xwl_screen) in xwl_glamor_eglstream_has_wl_interfaces() argument
675 xwl_eglstream_get(xwl_screen); in xwl_glamor_eglstream_has_wl_interfaces()
691 xwl_eglstream_init_shaders(struct xwl_screen *xwl_screen) in xwl_eglstream_init_shaders() argument
694 xwl_eglstream_get(xwl_screen); in xwl_eglstream_init_shaders()
764 xwl_glamor_eglstream_init_egl(struct xwl_screen *xwl_screen) in xwl_glamor_eglstream_init_egl() argument
767 xwl_eglstream_get(xwl_screen); in xwl_glamor_eglstream_init_egl()
790 xwl_screen->egl_display = glamor_egl_get_display( in xwl_glamor_eglstream_init_egl()
792 if (!xwl_screen->egl_display) in xwl_glamor_eglstream_init_egl()
795 if (!eglInitialize(xwl_screen->egl_display, NULL, NULL)) { in xwl_glamor_eglstream_init_egl()
796 xwl_screen->egl_display = NULL; in xwl_glamor_eglstream_init_egl()
800 if (!epoxy_has_egl_extension(xwl_screen->egl_display, in xwl_glamor_eglstream_init_egl()
806 eglChooseConfig(xwl_screen->egl_display, config_attribs, &config, 1, &n); in xwl_glamor_eglstream_init_egl()
814 xwl_screen->formats = in xwl_glamor_eglstream_init_egl()
819 xwl_screen->egl_context = eglCreateContext( in xwl_glamor_eglstream_init_egl()
820 xwl_screen->egl_display, config, EGL_NO_CONTEXT, attrib_list); in xwl_glamor_eglstream_init_egl()
821 if (xwl_screen->egl_context == EGL_NO_CONTEXT) { in xwl_glamor_eglstream_init_egl()
826 if (!eglMakeCurrent(xwl_screen->egl_display, in xwl_glamor_eglstream_init_egl()
828 xwl_screen->egl_context)) { in xwl_glamor_eglstream_init_egl()
834 epoxy_has_egl_extension(xwl_screen->egl_display, in xwl_glamor_eglstream_init_egl()
840 xwl_eglstream_init_shaders(xwl_screen); in xwl_glamor_eglstream_init_egl()
844 xwl_eglstream_cleanup(xwl_screen); in xwl_glamor_eglstream_init_egl()
849 xwl_glamor_eglstream_init_screen(struct xwl_screen *xwl_screen) in xwl_glamor_eglstream_init_screen() argument
852 xwl_eglstream_get(xwl_screen); in xwl_glamor_eglstream_init_screen()
853 ScreenPtr screen = xwl_screen->screen; in xwl_glamor_eglstream_init_screen()
869 xwl_eglstream_get_device(struct xwl_screen *xwl_screen) in xwl_eglstream_get_device() argument
900 xwl_glamor_init_eglstream(struct xwl_screen *xwl_screen) in xwl_glamor_init_eglstream() argument
905 xwl_screen->eglstream_backend.is_available = FALSE; in xwl_glamor_init_eglstream()
906 egl_device = xwl_eglstream_get_device(xwl_screen); in xwl_glamor_init_eglstream()
919 dixSetPrivate(&xwl_screen->screen->devPrivates, in xwl_glamor_init_eglstream()
925 xwl_screen->eglstream_backend.init_egl = xwl_glamor_eglstream_init_egl; in xwl_glamor_init_eglstream()
926 xwl_screen->eglstream_backend.init_wl_registry = xwl_glamor_eglstream_init_wl_registry; in xwl_glamor_init_eglstream()
927 xwl_screen->eglstream_backend.has_wl_interfaces = xwl_glamor_eglstream_has_wl_interfaces; in xwl_glamor_init_eglstream()
928 xwl_screen->eglstream_backend.init_screen = xwl_glamor_eglstream_init_screen; in xwl_glamor_init_eglstream()
929xwl_screen->eglstream_backend.get_wl_buffer_for_pixmap = xwl_glamor_eglstream_get_wl_buffer_for_pi… in xwl_glamor_init_eglstream()
930 xwl_screen->eglstream_backend.post_damage = xwl_glamor_eglstream_post_damage; in xwl_glamor_init_eglstream()
931 xwl_screen->eglstream_backend.allow_commits = xwl_glamor_eglstream_allow_commits; in xwl_glamor_init_eglstream()
932 xwl_screen->eglstream_backend.is_available = TRUE; in xwl_glamor_init_eglstream()