mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-28 08:56:32 -05:00
backend/drm: make drm_fb_acquire return a FB ID
This commit is contained in:
parent
d09abe86c1
commit
5ee8b12dc3
5 changed files with 36 additions and 44 deletions
|
|
@ -135,12 +135,7 @@ static void set_plane_props(struct atomic *atom, struct wlr_drm_backend *drm,
|
|||
uint32_t id = plane->id;
|
||||
const union wlr_drm_plane_props *props = &plane->props;
|
||||
struct wlr_drm_fb *fb = plane_get_next_fb(plane);
|
||||
struct gbm_bo *bo = drm_fb_acquire(fb, drm, &plane->mgpu_surf);
|
||||
if (!bo) {
|
||||
goto error;
|
||||
}
|
||||
|
||||
uint32_t fb_id = get_fb_for_bo(bo, drm->addfb2_modifiers);
|
||||
uint32_t fb_id = drm_fb_acquire(fb, drm, &plane->mgpu_surf);
|
||||
if (!fb_id) {
|
||||
goto error;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue