mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-15 15:20:31 +01:00
egl/wayland: split out kopper vtable
no functional changes Acked-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27703>
This commit is contained in:
parent
1188178811
commit
4345c415d7
1 changed files with 13 additions and 1 deletions
|
|
@ -2631,6 +2631,18 @@ static const struct dri2_egl_display_vtbl dri2_wl_swrast_display_vtbl = {
|
|||
.query_buffer_age = dri2_wl_swrast_query_buffer_age,
|
||||
};
|
||||
|
||||
static const struct dri2_egl_display_vtbl dri2_wl_kopper_display_vtbl = {
|
||||
.authenticate = NULL,
|
||||
.create_window_surface = dri2_wl_create_window_surface,
|
||||
.create_pixmap_surface = dri2_wl_create_pixmap_surface,
|
||||
.destroy_surface = dri2_wl_destroy_surface,
|
||||
.create_image = dri2_create_image_khr,
|
||||
.swap_buffers = dri2_wl_swrast_swap_buffers,
|
||||
.swap_buffers_with_damage = dri2_wl_swrast_swap_buffers_with_damage,
|
||||
.get_dri_drawable = dri2_surface_get_dri_drawable,
|
||||
.query_buffer_age = dri2_wl_swrast_query_buffer_age,
|
||||
};
|
||||
|
||||
static const __DRIswrastLoaderExtension swrast_loader_extension = {
|
||||
.base = {__DRI_SWRAST_LOADER, 2},
|
||||
|
||||
|
|
@ -2754,7 +2766,7 @@ dri2_initialize_wayland_swrast(_EGLDisplay *disp)
|
|||
/* Fill vtbl last to prevent accidentally calling virtual function during
|
||||
* initialization.
|
||||
*/
|
||||
dri2_dpy->vtbl = &dri2_wl_swrast_display_vtbl;
|
||||
dri2_dpy->vtbl = disp->Options.Zink ? &dri2_wl_kopper_display_vtbl : &dri2_wl_swrast_display_vtbl;
|
||||
|
||||
return EGL_TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue