Lines Matching refs:disp
207 dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id, in dri2_add_config() argument
212 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_add_config()
222 _eglInitConfig(&base, disp, id); in dri2_add_config()
290 if (!disp->Extensions.KHR_gl_colorspace && srgb) in dri2_add_config()
322 (disp->Extensions.NOK_texture_from_pixmap ? EGL_PIXMAP_BIT : 0))) { in dri2_add_config()
328 base.RenderableType = disp->ClientAPIs; in dri2_add_config()
329 base.Conformant = disp->ClientAPIs; in dri2_add_config()
342 num_configs = _eglFilterArray(disp->Configs, (void **) &matching_config, 1, in dri2_add_config()
393 _EGLDisplay *disp = data; in dri2_lookup_egl_image() local
399 img = _eglLookupImage(image, disp); in dri2_lookup_egl_image()
505 dri2_open_driver(_EGLDisplay *disp) in dri2_open_driver() argument
507 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_open_driver()
580 dri2_load_driver_dri3(_EGLDisplay *disp) in dri2_load_driver_dri3() argument
582 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_load_driver_dri3()
585 extensions = dri2_open_driver(disp); in dri2_load_driver_dri3()
599 dri2_load_driver(_EGLDisplay *disp) in dri2_load_driver() argument
601 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_load_driver()
604 extensions = dri2_open_driver(disp); in dri2_load_driver()
618 dri2_load_driver_swrast(_EGLDisplay *disp) in dri2_load_driver_swrast() argument
620 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_load_driver_swrast()
623 extensions = dri2_open_driver(disp); in dri2_load_driver_swrast()
650 dri2_setup_screen(_EGLDisplay *disp) in dri2_setup_screen() argument
652 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_setup_screen()
679 disp->ClientAPIs = 0; in dri2_setup_screen()
681 disp->ClientAPIs |= EGL_OPENGL_BIT; in dri2_setup_screen()
683 disp->ClientAPIs |= EGL_OPENGL_ES_BIT; in dri2_setup_screen()
685 disp->ClientAPIs |= EGL_OPENGL_ES2_BIT; in dri2_setup_screen()
687 disp->ClientAPIs |= EGL_OPENGL_ES3_BIT_KHR; in dri2_setup_screen()
690 disp->Extensions.KHR_no_config_context = EGL_TRUE; in dri2_setup_screen()
691 disp->Extensions.KHR_surfaceless_context = EGL_TRUE; in dri2_setup_screen()
694 disp->Extensions.IMG_context_priority = in dri2_setup_screen()
698 disp->Extensions.EXT_pixel_format_float = EGL_TRUE; in dri2_setup_screen()
702 disp->Extensions.KHR_gl_colorspace = EGL_TRUE; in dri2_setup_screen()
707 disp->Extensions.KHR_create_context = EGL_TRUE; in dri2_setup_screen()
710 disp->Extensions.EXT_create_context_robustness = EGL_TRUE; in dri2_setup_screen()
714 disp->Extensions.KHR_create_context_no_error = EGL_TRUE; in dri2_setup_screen()
717 disp->Extensions.KHR_fence_sync = EGL_TRUE; in dri2_setup_screen()
718 disp->Extensions.KHR_wait_sync = EGL_TRUE; in dri2_setup_screen()
720 disp->Extensions.KHR_cl_event2 = EGL_TRUE; in dri2_setup_screen()
725 disp->Extensions.ANDROID_native_fence_sync = in dri2_setup_screen()
730 disp->Extensions.KHR_reusable_sync = EGL_TRUE; in dri2_setup_screen()
738 disp->Extensions.MESA_drm_image = (capabilities & __DRI_IMAGE_CAP_GLOBAL_NAMES) != 0; in dri2_setup_screen()
741 disp->Extensions.MESA_image_dma_buf_export = EGL_TRUE; in dri2_setup_screen()
743 disp->Extensions.MESA_drm_image = EGL_TRUE; in dri2_setup_screen()
745 disp->Extensions.MESA_image_dma_buf_export = EGL_TRUE; in dri2_setup_screen()
748 disp->Extensions.KHR_image_base = EGL_TRUE; in dri2_setup_screen()
749 disp->Extensions.KHR_gl_renderbuffer_image = EGL_TRUE; in dri2_setup_screen()
752 disp->Extensions.KHR_gl_texture_2D_image = EGL_TRUE; in dri2_setup_screen()
753 disp->Extensions.KHR_gl_texture_cubemap_image = EGL_TRUE; in dri2_setup_screen()
757 disp->Extensions.KHR_gl_texture_3D_image = EGL_TRUE; in dri2_setup_screen()
762 disp->Extensions.EXT_image_dma_buf_import = EGL_TRUE; in dri2_setup_screen()
768 disp->Extensions.EXT_image_dma_buf_import_modifiers = EGL_TRUE; in dri2_setup_screen()
774 disp->Extensions.KHR_context_flush_control = EGL_TRUE; in dri2_setup_screen()
778 dri2_setup_swap_interval(_EGLDisplay *disp, int max_swap_interval) in dri2_setup_swap_interval() argument
780 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_setup_swap_interval()
816 dri2_create_screen(_EGLDisplay *disp) in dri2_create_screen() argument
818 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_screen()
826 disp); in dri2_create_screen()
833 &dri2_dpy->driver_configs, disp); in dri2_create_screen()
838 &dri2_dpy->driver_configs, disp); in dri2_create_screen()
846 &dri2_dpy->driver_configs, disp); in dri2_create_screen()
850 &dri2_dpy->driver_configs, disp); in dri2_create_screen()
864 dri2_setup_extensions(_EGLDisplay *disp) in dri2_setup_extensions() argument
866 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_setup_extensions()
891 dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp) in dri2_initialize() argument
894 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_initialize()
913 switch (disp->Platform) { in dri2_initialize()
915 ret = dri2_initialize_surfaceless(drv, disp); in dri2_initialize()
918 ret = dri2_initialize_x11(drv, disp); in dri2_initialize()
921 ret = dri2_initialize_drm(drv, disp); in dri2_initialize()
924 ret = dri2_initialize_wayland(drv, disp); in dri2_initialize()
927 ret = dri2_initialize_android(drv, disp); in dri2_initialize()
937 dri2_dpy = dri2_egl_display(disp); in dri2_initialize()
947 dri2_display_release(_EGLDisplay *disp) in dri2_display_release() argument
951 if (!disp) in dri2_display_release()
954 dri2_dpy = dri2_egl_display(disp); in dri2_display_release()
962 _eglCleanupDisplay(disp); in dri2_display_release()
963 dri2_display_destroy(disp); in dri2_display_release()
967 dri2_display_destroy(_EGLDisplay *disp) in dri2_display_destroy() argument
969 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_display_destroy()
973 dri2_dpy->vtbl->close_screen_notify(disp); in dri2_display_destroy()
986 switch (disp->Platform) { in dri2_display_destroy()
1005 if (disp->Platform != _EGL_PLATFORM_DRM && dri2_dpy->driver_configs) { in dri2_display_destroy()
1011 disp->DriverData = NULL; in dri2_display_destroy()
1055 dri2_terminate(_EGLDriver *drv, _EGLDisplay *disp) in dri2_terminate() argument
1058 _eglReleaseDisplayResources(drv, disp); in dri2_terminate()
1060 dri2_display_release(disp); in dri2_terminate()
1210 dri2_create_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf, in dri2_create_context() argument
1214 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_context()
1233 if (!_eglInitContext(&dri2_ctx->base, disp, conf, attrib_list)) in dri2_create_context()
1388 dri2_destroy_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx) in dri2_destroy_context() argument
1391 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_destroy_context()
1477 dri2_make_current(_EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *dsurf, in dri2_make_current() argument
1480 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_make_current()
1510 dri2_surf_update_fence_fd(old_ctx, disp, old_dsurf); in dri2_make_current()
1517 dri2_destroy_surface(drv, disp, old_dsurf); in dri2_make_current()
1518 dri2_destroy_surface(drv, disp, old_rsurf); in dri2_make_current()
1524 dri2_destroy_context(drv, disp, old_ctx); in dri2_make_current()
1612 dri2_flush_drawable_for_swapbuffers(_EGLDisplay *disp, _EGLSurface *draw) in dri2_flush_drawable_for_swapbuffers() argument
1614 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_flush_drawable_for_swapbuffers()
1708 dri2_wait_client(_EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx) in dri2_wait_client() argument
1710 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_wait_client()
1726 dri2_wait_native(_EGLDriver *drv, _EGLDisplay *disp, EGLint engine) in dri2_wait_native() argument
1729 (void) disp; in dri2_wait_native()
1740 _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) in dri2_bind_tex_image() argument
1742 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_bind_tex_image()
1751 if (!_eglBindTexImage(drv, disp, surf, buffer)) in dri2_bind_tex_image()
1784 _EGLDisplay *disp, _EGLSurface *surf, EGLint buffer) in dri2_release_tex_image() argument
1786 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_release_tex_image()
1795 if (!_eglReleaseTexImage(drv, disp, surf, buffer)) in dri2_release_tex_image()
1826 dri2_create_image_from_dri(_EGLDisplay *disp, __DRIimage *dri_image) in dri2_create_image_from_dri() argument
1841 _eglInitImage(&dri2_img->base, disp); in dri2_create_image_from_dri()
1872 dri2_create_image_khr_renderbuffer(_EGLDisplay *disp, _EGLContext *ctx, in dri2_create_image_khr_renderbuffer() argument
1876 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_image_khr_renderbuffer()
1886 if (!disp->Extensions.KHR_gl_renderbuffer_image) { in dri2_create_image_khr_renderbuffer()
1913 return dri2_create_image_from_dri(disp, dri_image); in dri2_create_image_khr_renderbuffer()
1937 dri2_create_image_wayland_wl_buffer(_EGLDisplay *disp, _EGLContext *ctx, in dri2_create_image_wayland_wl_buffer() argument
1942 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_image_wayland_wl_buffer()
1953 if (!_eglParseImageAttribList(&attrs, disp, attr_list)) in dri2_create_image_wayland_wl_buffer()
1971 return dri2_create_image_from_dri(disp, dri_image); in dri2_create_image_wayland_wl_buffer()
1998 dri2_create_image_khr_texture(_EGLDisplay *disp, _EGLContext *ctx, in dri2_create_image_khr_texture() argument
2003 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_image_khr_texture()
2017 if (!_eglParseImageAttribList(&attrs, disp, attr_list)) in dri2_create_image_khr_texture()
2022 if (!disp->Extensions.KHR_gl_texture_2D_image) { in dri2_create_image_khr_texture()
2030 if (!disp->Extensions.KHR_gl_texture_3D_image) { in dri2_create_image_khr_texture()
2044 if (!disp->Extensions.KHR_gl_texture_cubemap_image) { in dri2_create_image_khr_texture()
2063 _eglInitImage(&dri2_img->base, disp); in dri2_create_image_khr_texture()
2102 dri2_create_image_mesa_drm_buffer(_EGLDisplay *disp, _EGLContext *ctx, in dri2_create_image_mesa_drm_buffer() argument
2105 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_image_mesa_drm_buffer()
2112 if (!_eglParseImageAttribList(&attrs, disp, attr_list)) in dri2_create_image_mesa_drm_buffer()
2142 return dri2_create_image_from_dri(disp, dri_image); in dri2_create_image_mesa_drm_buffer()
2344 dri2_query_dma_buf_formats(_EGLDriver *drv, _EGLDisplay *disp, in dri2_query_dma_buf_formats() argument
2347 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_query_dma_buf_formats()
2363 dri2_query_dma_buf_modifiers(_EGLDriver *drv, _EGLDisplay *disp, EGLint format, in dri2_query_dma_buf_modifiers() argument
2367 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_query_dma_buf_modifiers()
2399 dri2_create_image_dma_buf(_EGLDisplay *disp, _EGLContext *ctx, in dri2_create_image_dma_buf() argument
2402 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_image_dma_buf()
2425 if (!_eglParseImageAttribList(&attrs, disp, attr_list)) in dri2_create_image_dma_buf()
2484 res = dri2_create_image_from_dri(disp, dri_image); in dri2_create_image_dma_buf()
2489 dri2_create_drm_image_mesa(_EGLDriver *drv, _EGLDisplay *disp, in dri2_create_drm_image_mesa() argument
2492 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_create_drm_image_mesa()
2505 if (!_eglParseImageAttribList(&attrs, disp, attr_list)) in dri2_create_drm_image_mesa()
2545 _eglInitImage(&dri2_img->base, disp); in dri2_create_drm_image_mesa()
2561 dri2_export_drm_image_mesa(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *img, in dri2_export_drm_image_mesa() argument
2564 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_export_drm_image_mesa()
2585 dri2_export_dma_buf_image_query_mesa(_EGLDriver *drv, _EGLDisplay *disp, in dri2_export_dma_buf_image_query_mesa() argument
2590 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_export_dma_buf_image_query_mesa()
2610 dri2_export_dma_buf_image_mesa(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *img, in dri2_export_dma_buf_image_mesa() argument
2613 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_export_dma_buf_image_mesa()
2643 dri2_create_image_khr(_EGLDriver *drv, _EGLDisplay *disp, in dri2_create_image_khr() argument
2658 return dri2_create_image_khr_texture(disp, ctx, target, buffer, attr_list); in dri2_create_image_khr()
2660 return dri2_create_image_khr_renderbuffer(disp, ctx, buffer, attr_list); in dri2_create_image_khr()
2663 return dri2_create_image_mesa_drm_buffer(disp, ctx, buffer, attr_list); in dri2_create_image_khr()
2665 return dri2_create_image_dma_buf(disp, ctx, buffer, attr_list); in dri2_create_image_khr()
2669 return dri2_create_image_wayland_wl_buffer(disp, ctx, buffer, attr_list); in dri2_create_image_khr()
2678 dri2_destroy_image_khr(_EGLDriver *drv, _EGLDisplay *disp, _EGLImage *image) in dri2_destroy_image_khr() argument
2680 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_destroy_image_khr()
2697 _EGLDisplay *disp = user_data; in dri2_wl_reference_buffer() local
2698 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_wl_reference_buffer()
2740 _EGLDisplay *disp = user_data; in dri2_wl_release_buffer() local
2741 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_wl_release_buffer()
2747 dri2_bind_wayland_display_wl(_EGLDriver *drv, _EGLDisplay *disp, in dri2_bind_wayland_display_wl() argument
2750 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_bind_wayland_display_wl()
2772 &wl_drm_callbacks, disp, flags); in dri2_bind_wayland_display_wl()
2788 dri2_unbind_wayland_display_wl(_EGLDriver *drv, _EGLDisplay *disp, in dri2_unbind_wayland_display_wl() argument
2791 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_unbind_wayland_display_wl()
2805 dri2_query_wayland_buffer_wl(_EGLDriver *drv, _EGLDisplay *disp, in dri2_query_wayland_buffer_wl() argument
2809 struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); in dri2_query_wayland_buffer_wl()