Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 5080 | ||
---|---|---|---|
Line 98... | Line 98... | ||
98 | 98 | ||
99 | if (!gdrv->platforms[plat]) { |
99 | if (!gdrv->platforms[plat]) { |
100 | const char *plat_name = NULL; |
100 | const char *plat_name = NULL; |
Line 101... | Line -... | ||
101 | const struct native_platform *nplat = NULL; |
- | |
102 | - | ||
103 | switch (plat) { |
- | |
104 | case _EGL_PLATFORM_WINDOWS: |
- | |
105 | plat_name = "Windows"; |
- | |
106 | #ifdef HAVE_GDI_BACKEND |
- | |
107 | nplat = native_get_gdi_platform(&egl_g3d_native_event_handler); |
- | |
108 | #endif |
- | |
109 | break; |
- | |
110 | case _EGL_PLATFORM_X11: |
- | |
111 | plat_name = "X11"; |
- | |
112 | #ifdef HAVE_X11_BACKEND |
- | |
113 | nplat = native_get_x11_platform(&egl_g3d_native_event_handler); |
- | |
114 | #endif |
- | |
115 | break; |
- | |
116 | case _EGL_PLATFORM_WAYLAND: |
- | |
117 | plat_name = "wayland"; |
- | |
118 | #ifdef HAVE_WAYLAND_BACKEND |
- | |
119 | nplat = native_get_wayland_platform(&egl_g3d_native_event_handler); |
- | |
120 | #endif |
- | |
121 | break; |
101 | const struct native_platform *nplat = NULL; |
122 | case _EGL_PLATFORM_DRM: |
- | |
123 | plat_name = "DRM"; |
102 | |
124 | #ifdef HAVE_DRM_BACKEND |
- | |
125 | nplat = native_get_drm_platform(&egl_g3d_native_event_handler); |
- | |
126 | #endif |
- | |
127 | break; |
- | |
128 | case _EGL_PLATFORM_FBDEV: |
- | |
129 | plat_name = "FBDEV"; |
- | |
130 | #ifdef HAVE_FBDEV_BACKEND |
- | |
131 | nplat = native_get_fbdev_platform(&egl_g3d_native_event_handler); |
- | |
132 | #endif |
- | |
133 | break; |
- | |
134 | case _EGL_PLATFORM_NULL: |
- | |
135 | plat_name = "NULL"; |
- | |
136 | #ifdef HAVE_NULL_BACKEND |
- | |
137 | nplat = native_get_null_platform(&egl_g3d_native_event_handler); |
- | |
138 | #endif |
- | |
139 | break; |
- | |
140 | case _EGL_PLATFORM_ANDROID: |
- | |
141 | plat_name = "Android"; |
- | |
142 | #ifdef HAVE_ANDROID_BACKEND |
- | |
143 | nplat = native_get_android_platform(&egl_g3d_native_event_handler); |
- | |
144 | #endif |
- | |
145 | break; |
- | |
146 | default: |
- | |
Line 147... | Line 103... | ||
147 | break; |
103 | plat_name = "DRM"; |
148 | } |
104 | nplat = native_get_drm_platform(&egl_g3d_native_event_handler); |
Line 149... | Line 105... | ||
149 | 105 | ||
Line 585... | Line 541... | ||
585 | dpy->Extensions.MESA_drm_display = EGL_TRUE; |
541 | dpy->Extensions.MESA_drm_display = EGL_TRUE; |
586 | if (gdpy->native->buffer) |
542 | if (gdpy->native->buffer) |
587 | dpy->Extensions.MESA_drm_image = EGL_TRUE; |
543 | dpy->Extensions.MESA_drm_image = EGL_TRUE; |
588 | } |
544 | } |
Line 589... | Line 545... | ||
589 | 545 | ||
590 | if (dpy->Platform == _EGL_PLATFORM_WAYLAND && gdpy->native->buffer) |
546 | // if (dpy->Platform == _EGL_PLATFORM_WAYLAND && gdpy->native->buffer) |
Line 591... | Line -... | ||
591 | dpy->Extensions.MESA_drm_image = EGL_TRUE; |
- | |
592 | - | ||
593 | #ifdef EGL_ANDROID_image_native_buffer |
- | |
594 | if (dpy->Platform == _EGL_PLATFORM_ANDROID && gdpy->native->buffer) |
- | |
595 | dpy->Extensions.ANDROID_image_native_buffer = EGL_TRUE; |
- | |
596 | #endif |
- | |
597 | - | ||
598 | #ifdef EGL_WL_bind_wayland_display |
- | |
599 | if (gdpy->native->wayland_bufmgr) |
- | |
Line 600... | Line 547... | ||
600 | dpy->Extensions.WL_bind_wayland_display = EGL_TRUE; |
547 | // dpy->Extensions.MESA_drm_image = EGL_TRUE; |
601 | #endif |
548 | |
602 | 549 | ||
603 | if (gdpy->native->get_param(gdpy->native, NATIVE_PARAM_PRESENT_REGION) && |
550 | if (gdpy->native->get_param(gdpy->native, NATIVE_PARAM_PRESENT_REGION) && |