xwayland/glamor: Drop the init_screen() hook
And call xwl_glamor_gbm_init_screen() directly instead. Signed-off-by: Olivier Fourdan <ofourdan@redhat.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1386>
This commit is contained in:
parent
e1bec429bb
commit
e60e00ff40
|
@ -1237,7 +1237,7 @@ error:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static Bool
|
Bool
|
||||||
xwl_glamor_gbm_init_screen(struct xwl_screen *xwl_screen)
|
xwl_glamor_gbm_init_screen(struct xwl_screen *xwl_screen)
|
||||||
{
|
{
|
||||||
struct xwl_gbm_private *xwl_gbm = xwl_gbm_get(xwl_screen);
|
struct xwl_gbm_private *xwl_gbm = xwl_gbm_get(xwl_screen);
|
||||||
|
@ -1301,7 +1301,6 @@ xwl_glamor_init_gbm(struct xwl_screen *xwl_screen)
|
||||||
dixSetPrivate(&xwl_screen->screen->devPrivates, &xwl_gbm_private_key,
|
dixSetPrivate(&xwl_screen->screen->devPrivates, &xwl_gbm_private_key,
|
||||||
xwl_gbm);
|
xwl_gbm);
|
||||||
|
|
||||||
xwl_screen->gbm_backend.init_screen = xwl_glamor_gbm_init_screen;
|
|
||||||
xwl_screen->gbm_backend.get_wl_buffer_for_pixmap = xwl_glamor_gbm_get_wl_buffer_for_pixmap;
|
xwl_screen->gbm_backend.get_wl_buffer_for_pixmap = xwl_glamor_gbm_get_wl_buffer_for_pixmap;
|
||||||
xwl_screen->gbm_backend.check_flip = NULL;
|
xwl_screen->gbm_backend.check_flip = NULL;
|
||||||
xwl_screen->gbm_backend.get_main_device = xwl_gbm_get_main_device;
|
xwl_screen->gbm_backend.get_main_device = xwl_gbm_get_main_device;
|
||||||
|
|
|
@ -37,5 +37,6 @@
|
||||||
void xwl_glamor_init_gbm(struct xwl_screen *xwl_screen);
|
void xwl_glamor_init_gbm(struct xwl_screen *xwl_screen);
|
||||||
Bool xwl_glamor_has_wl_drm(struct xwl_screen *xwl_screen);
|
Bool xwl_glamor_has_wl_drm(struct xwl_screen *xwl_screen);
|
||||||
Bool xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen);
|
Bool xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen);
|
||||||
|
Bool xwl_glamor_gbm_init_screen(struct xwl_screen *xwl_screen);
|
||||||
|
|
||||||
#endif /* XWAYLAND_GLAMOR_GBM_H */
|
#endif /* XWAYLAND_GLAMOR_GBM_H */
|
||||||
|
|
|
@ -400,7 +400,7 @@ xwl_glamor_init(struct xwl_screen *xwl_screen)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!xwl_screen->egl_backend->init_screen(xwl_screen)) {
|
if (!xwl_glamor_gbm_init_screen(xwl_screen)) {
|
||||||
ErrorF("EGL backend init_screen() failed, disabling glamor\n");
|
ErrorF("EGL backend init_screen() failed, disabling glamor\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue