mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-16 08:56:26 -05:00
backend/drm: introduce wlr_drm_fb
This is a type which manages gbm_surfaces and imported dmabufs in the same place, and makes the lifetime management between the two shared. It should lead to easier to understand code, and fewer special cases. This also contains a fair bit of refactoring to start using this new type. Co-authored-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
fa5d709fc3
commit
8da9d9679e
8 changed files with 397 additions and 285 deletions
|
|
@ -172,7 +172,7 @@ static bool atomic_crtc_set_cursor(struct wlr_drm_backend *drm,
|
|||
|
||||
if (bo) {
|
||||
uint32_t fb_id =
|
||||
get_fb_for_bo(bo, plane->drm_format, drm->addfb2_modifiers);
|
||||
get_fb_for_bo(bo, drm->addfb2_modifiers);
|
||||
set_plane_props(&atom, plane, crtc->id, fb_id, false);
|
||||
} else {
|
||||
atomic_add(&atom, plane->id, plane->props.fb_id, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue