diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-15 09:53:15 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-22 15:53:10 +0100 |
commit | 5ee8b12dc3fe26f27116547d480c2b2637b242bb (patch) | |
tree | e450aba818bfc35b941d13e961afb477ef8299a9 /backend/drm/atomic.c | |
parent | d09abe86c15a26c25fa788f03438c55f701f4aed (diff) |
backend/drm: make drm_fb_acquire return a FB ID
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r-- | backend/drm/atomic.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index fe67244f..3e2047e4 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -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; } |