mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-16 08:30:28 +01:00
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>
(cherry picked from commit 63e2f98f0a)
This commit is contained in:
parent
2cdfc6ec83
commit
f46730f6dd
2 changed files with 2 additions and 10 deletions
|
|
@ -1306,6 +1306,4 @@ xwl_glamor_init_gbm(struct xwl_screen *xwl_screen)
|
|||
xwl_gbm);
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -299,19 +299,13 @@ xwl_glamor_needs_buffer_flush(struct xwl_screen *xwl_screen)
|
|||
if (!xwl_screen->glamor || !xwl_screen->egl_backend)
|
||||
return FALSE;
|
||||
|
||||
return (xwl_screen->egl_backend->backend_flags &
|
||||
XWL_EGL_BACKEND_NEEDS_BUFFER_FLUSH);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Bool
|
||||
xwl_glamor_needs_n_buffering(struct xwl_screen *xwl_screen)
|
||||
{
|
||||
/* wl_shm benefits from n-buffering */
|
||||
if (!xwl_screen->glamor || !xwl_screen->egl_backend)
|
||||
return TRUE;
|
||||
|
||||
return (xwl_screen->egl_backend->backend_flags &
|
||||
XWL_EGL_BACKEND_NEEDS_N_BUFFERING);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue