Lines Matching +full:display +full:- +full:backend

2  * Copyright © 2011-2014 Intel Corporation
38 eglMakeCurrent(glamor_ctx->display, EGL_NO_SURFACE, in glamor_egl_make_current()
40 if (!eglMakeCurrent(glamor_ctx->display, in glamor_egl_make_current()
42 glamor_ctx->ctx)) in glamor_egl_make_current()
49 if (lastGLContext == xwl_screen->glamor_ctx) in xwl_glamor_egl_make_current()
52 lastGLContext = xwl_screen->glamor_ctx; in xwl_glamor_egl_make_current()
53 xwl_screen->glamor_ctx->make_current(xwl_screen->glamor_ctx); in xwl_glamor_egl_make_current()
62 glamor_ctx->ctx = xwl_screen->egl_context; in glamor_egl_screen_init()
63 glamor_ctx->display = xwl_screen->egl_display; in glamor_egl_screen_init()
65 glamor_ctx->make_current = glamor_egl_make_current; in glamor_egl_screen_init()
67 xwl_screen->glamor_ctx = glamor_ctx; in glamor_egl_screen_init()
76 if (xwl_screen->gbm_backend.is_available && in xwl_glamor_init_wl_registry()
77 xwl_screen->gbm_backend.init_wl_registry(xwl_screen, in xwl_glamor_init_wl_registry()
81 version)); /* no-op */ in xwl_glamor_init_wl_registry()
82 else if (xwl_screen->eglstream_backend.is_available && in xwl_glamor_init_wl_registry()
83 xwl_screen->eglstream_backend.init_wl_registry(xwl_screen, in xwl_glamor_init_wl_registry()
87 version)); /* no-op */ in xwl_glamor_init_wl_registry()
94 return xwl_egl_backend->has_wl_interfaces(xwl_screen); in xwl_glamor_has_wl_interfaces()
101 struct xwl_screen *xwl_screen = xwl_screen_get(pixmap->drawable.pScreen); in xwl_glamor_pixmap_get_wl_buffer()
103 if (xwl_screen->egl_backend->get_wl_buffer_for_pixmap) in xwl_glamor_pixmap_get_wl_buffer()
104 return xwl_screen->egl_backend->get_wl_buffer_for_pixmap(pixmap, in xwl_glamor_pixmap_get_wl_buffer()
114 struct xwl_screen *xwl_screen = xwl_window->xwl_screen; in xwl_glamor_post_damage()
116 if (xwl_screen->egl_backend->post_damage) in xwl_glamor_post_damage()
117 xwl_screen->egl_backend->post_damage(xwl_window, pixmap, region); in xwl_glamor_post_damage()
123 struct xwl_screen *xwl_screen = xwl_window->xwl_screen; in xwl_glamor_allow_commits()
125 if (xwl_screen->egl_backend->allow_commits) in xwl_glamor_allow_commits()
126 return xwl_screen->egl_backend->allow_commits(xwl_window); in xwl_glamor_allow_commits()
137 screen->CreateScreenResources = xwl_screen->CreateScreenResources; in xwl_glamor_create_screen_resources()
138 ret = (*screen->CreateScreenResources) (screen); in xwl_glamor_create_screen_resources()
139 xwl_screen->CreateScreenResources = screen->CreateScreenResources; in xwl_glamor_create_screen_resources()
140 screen->CreateScreenResources = xwl_glamor_create_screen_resources; in xwl_glamor_create_screen_resources()
145 if (xwl_screen->rootless) { in xwl_glamor_create_screen_resources()
146 screen->devPrivate = in xwl_glamor_create_screen_resources()
147 fbCreatePixmap(screen, 0, 0, screen->rootDepth, 0); in xwl_glamor_create_screen_resources()
150 screen->devPrivate = screen->CreatePixmap( in xwl_glamor_create_screen_resources()
151 screen, screen->width, screen->height, screen->rootDepth, in xwl_glamor_create_screen_resources()
155 SetRootClip(screen, xwl_screen->root_clip_mode); in xwl_glamor_create_screen_resources()
157 return screen->devPrivate != NULL; in xwl_glamor_create_screen_resources()
173 if (!xwl_screen->gbm_backend.is_available && !use_eglstream) in xwl_glamor_init_backends()
174 ErrorF("xwayland glamor: GBM backend (default) is not available\n"); in xwl_glamor_init_backends()
178 if (!xwl_screen->eglstream_backend.is_available && use_eglstream) in xwl_glamor_init_backends()
179 ErrorF("xwayland glamor: EGLStream backend requested but not available\n"); in xwl_glamor_init_backends()
187 if (xwl_screen->gbm_backend.is_available && in xwl_glamor_select_gbm_backend()
188 xwl_glamor_has_wl_interfaces(xwl_screen, &xwl_screen->gbm_backend)) { in xwl_glamor_select_gbm_backend()
189 xwl_screen->egl_backend = &xwl_screen->gbm_backend; in xwl_glamor_select_gbm_backend()
193 ErrorF("Missing Wayland requirements for glamor GBM backend\n"); in xwl_glamor_select_gbm_backend()
203 if (xwl_screen->eglstream_backend.is_available && in xwl_glamor_select_eglstream_backend()
204 xwl_glamor_has_wl_interfaces(xwl_screen, &xwl_screen->eglstream_backend)) { in xwl_glamor_select_eglstream_backend()
207 xwl_screen->egl_backend = &xwl_screen->eglstream_backend; in xwl_glamor_select_eglstream_backend()
211 ErrorF("Missing Wayland requirements for glamor EGLStream backend\n"); in xwl_glamor_select_eglstream_backend()
233 ScreenPtr screen = xwl_screen->screen; in xwl_glamor_init()
242 if (!xwl_screen->egl_backend->init_egl(xwl_screen)) { in xwl_glamor_init()
247 if (!glamor_init(xwl_screen->screen, GLAMOR_USE_EGL_SCREEN)) { in xwl_glamor_init()
252 if (!xwl_screen->egl_backend->init_screen(xwl_screen)) { in xwl_glamor_init()
253 ErrorF("EGL backend init_screen() failed, disabling glamor\n"); in xwl_glamor_init()
257 xwl_screen->CreateScreenResources = screen->CreateScreenResources; in xwl_glamor_init()
258 screen->CreateScreenResources = xwl_glamor_create_screen_resources; in xwl_glamor_init()