xwayland/glamor: Drop the backend_flags
We do not need these anymore, since we only have the GBM backend left. 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
925a218b4b
commit
63e2f98f0a
|
@ -1306,6 +1306,4 @@ xwl_glamor_init_gbm(struct xwl_screen *xwl_screen)
|
||||||
xwl_gbm);
|
xwl_gbm);
|
||||||
|
|
||||||
xwl_screen->gbm_backend.is_available = TRUE;
|
xwl_screen->gbm_backend.is_available = TRUE;
|
||||||
xwl_screen->gbm_backend.backend_flags = XWL_EGL_BACKEND_NEEDS_BUFFER_FLUSH |
|
|
||||||
XWL_EGL_BACKEND_NEEDS_N_BUFFERING;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -300,19 +300,13 @@ xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen)
|
||||||
if (!xwl_screen->glamor || !xwl_screen->egl_backend)
|
if (!xwl_screen->glamor || !xwl_screen->egl_backend)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
return (xwl_screen->egl_backend->backend_flags &
|
return TRUE;
|
||||||
XWL_EGL_BACKEND_NEEDS_BUFFER_FLUSH);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen)
|
xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen)
|
||||||
{
|
{
|
||||||
/* wl_shm benefits from n-buffering */
|
return TRUE;
|
||||||
if (!xwl_screen->glamor || !xwl_screen->egl_backend)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
return (xwl_screen->egl_backend->backend_flags &
|
|
||||||
XWL_EGL_BACKEND_NEEDS_N_BUFFERING);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in New Issue