Lines Matching refs:xwl_eglstream

176     struct xwl_eglstream_private *xwl_eglstream =  in xwl_eglstream_cleanup()  local
179 if (xwl_eglstream->display) in xwl_eglstream_cleanup()
180 wl_eglstream_display_destroy(xwl_eglstream->display); in xwl_eglstream_cleanup()
181 if (xwl_eglstream->controller) in xwl_eglstream_cleanup()
182 wl_eglstream_controller_destroy(xwl_eglstream->controller); in xwl_eglstream_cleanup()
183 if (xwl_eglstream->blit_prog) { in xwl_eglstream_cleanup()
184 glDeleteProgram(xwl_eglstream->blit_prog); in xwl_eglstream_cleanup()
185 glDeleteBuffers(1, &xwl_eglstream->blit_vbo); in xwl_eglstream_cleanup()
188 free(xwl_eglstream); in xwl_eglstream_cleanup()
326 struct xwl_eglstream_private *xwl_eglstream = in xwl_eglstream_set_window_pixmap() local
347 xwl_screen->screen->SetWindowPixmap = xwl_eglstream->SetWindowPixmap; in xwl_eglstream_set_window_pixmap()
349 xwl_eglstream->SetWindowPixmap = xwl_screen->screen->SetWindowPixmap; in xwl_eglstream_set_window_pixmap()
399 struct xwl_eglstream_private *xwl_eglstream = in xwl_eglstream_consumer_ready_callback() local
407 xorg_list_for_each_entry(pending, &xwl_eglstream->pending_streams, link) { in xwl_eglstream_consumer_ready_callback()
424 xwl_screen->egl_display, xwl_eglstream->config, in xwl_eglstream_consumer_ready_callback()
448 struct xwl_eglstream_private *xwl_eglstream = in xwl_eglstream_queue_pending_stream() local
467 xorg_list_add(&pending_stream->link, &xwl_eglstream->pending_streams); in xwl_eglstream_queue_pending_stream()
489 struct xwl_eglstream_private *xwl_eglstream = in xwl_eglstream_create_pending_stream() local
511 wl_eglstream_display_create_stream(xwl_eglstream->display, in xwl_eglstream_create_pending_stream()
523 xwl_eglstream->controller, xwl_window->surface, xwl_pixmap->buffer); in xwl_eglstream_create_pending_stream()
569 struct xwl_eglstream_private *xwl_eglstream = in xwl_glamor_eglstream_post_damage() local
595 glUseProgram(xwl_eglstream->blit_prog); in xwl_glamor_eglstream_post_damage()
598 glBindVertexArray(xwl_eglstream->blit_vao); in xwl_glamor_eglstream_post_damage()
601 glUniform1i(xwl_eglstream->blit_is_rgba_pos, in xwl_glamor_eglstream_post_damage()
608 if (xwl_eglstream->have_egl_damage) in xwl_glamor_eglstream_post_damage()
650 struct xwl_eglstream_private *xwl_eglstream = in xwl_glamor_eglstream_init_wl_registry() local
654 xwl_eglstream->display = wl_registry_bind( in xwl_glamor_eglstream_init_wl_registry()
657 wl_eglstream_display_add_listener(xwl_eglstream->display, in xwl_glamor_eglstream_init_wl_registry()
662 xwl_eglstream->controller = wl_registry_bind( in xwl_glamor_eglstream_init_wl_registry()
674 struct xwl_eglstream_private *xwl_eglstream = in xwl_glamor_eglstream_has_wl_interfaces() local
677 if (xwl_eglstream->display == NULL) { in xwl_glamor_eglstream_has_wl_interfaces()
682 if (xwl_eglstream->controller == NULL) { in xwl_glamor_eglstream_has_wl_interfaces()
693 struct xwl_eglstream_private *xwl_eglstream = in xwl_eglstream_init_shaders() local
734 xwl_eglstream->blit_prog = xwl_eglstream_build_glsl_prog(vs, fs); in xwl_eglstream_init_shaders()
739 glGenVertexArrays(1, &xwl_eglstream->blit_vao); in xwl_eglstream_init_shaders()
740 glBindVertexArray(xwl_eglstream->blit_vao); in xwl_eglstream_init_shaders()
746 xwl_eglstream->blit_vbo = vbo; in xwl_eglstream_init_shaders()
749 attrib = glGetAttribLocation(xwl_eglstream->blit_prog, "position"); in xwl_eglstream_init_shaders()
753 attrib = glGetAttribLocation(xwl_eglstream->blit_prog, "texcoord"); in xwl_eglstream_init_shaders()
759 xwl_eglstream->blit_is_rgba_pos = in xwl_eglstream_init_shaders()
760 glGetUniformLocation(xwl_eglstream->blit_prog, "is_rgba"); in xwl_eglstream_init_shaders()
766 struct xwl_eglstream_private *xwl_eglstream = in xwl_glamor_eglstream_init_egl() local
791 EGL_PLATFORM_DEVICE_EXT, xwl_eglstream->egl_device); in xwl_glamor_eglstream_init_egl()
812 xwl_eglstream->config = config; in xwl_glamor_eglstream_init_egl()
833 xwl_eglstream->have_egl_damage = in xwl_glamor_eglstream_init_egl()
836 if (!xwl_eglstream->have_egl_damage) in xwl_glamor_eglstream_init_egl()
851 struct xwl_eglstream_private *xwl_eglstream = in xwl_glamor_eglstream_init_screen() local
858 xwl_eglstream->SetWindowPixmap = screen->SetWindowPixmap; in xwl_glamor_eglstream_init_screen()
902 struct xwl_eglstream_private *xwl_eglstream; in xwl_glamor_init_eglstream() local
913 xwl_eglstream = calloc(sizeof(*xwl_eglstream), 1); in xwl_glamor_init_eglstream()
914 if (!xwl_eglstream) { in xwl_glamor_init_eglstream()
920 &xwl_eglstream_private_key, xwl_eglstream); in xwl_glamor_init_eglstream()
922 xwl_eglstream->egl_device = egl_device; in xwl_glamor_init_eglstream()
923 xorg_list_init(&xwl_eglstream->pending_streams); in xwl_glamor_init_eglstream()