mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-02-20 01:40:44 -05:00
backend/drm: Check for mgpu_renderer instead of parent
The presence of the renderer is what matters with respect to blitting. Having a parent without the need to blit will be allowed later.
This commit is contained in:
parent
1dd05437bf
commit
b2bb111f03
2 changed files with 11 additions and 11 deletions
|
|
@ -53,7 +53,7 @@ static void backend_destroy(struct wlr_backend *backend) {
|
|||
wl_list_remove(&drm->dev_change.link);
|
||||
wl_list_remove(&drm->dev_remove.link);
|
||||
|
||||
if (drm->parent) {
|
||||
if (drm->mgpu_renderer.wlr_rend) {
|
||||
finish_drm_renderer(&drm->mgpu_renderer);
|
||||
}
|
||||
|
||||
|
|
@ -271,7 +271,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wlr_session *session,
|
|||
}
|
||||
}
|
||||
|
||||
if (drm->parent) {
|
||||
if (drm->mgpu_renderer.wlr_rend) {
|
||||
drm->backend.features.timeline = drm->backend.features.timeline &&
|
||||
drm->mgpu_renderer.wlr_rend->features.timeline;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue