diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-29 10:39:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 10:39:54 -0500 |
commit | feb1b9b1cbcf675a4bb449ce30c50522cb8b09f5 (patch) | |
tree | f916d3f043498073b8bd4a2b84777cb2777ae079 /backend/drm/atomic.c | |
parent | 9fe8e379613c42338920e913c6ffd6d1c273da67 (diff) | |
parent | ee293fab58da190943426a6d23380dd04200a4ff (diff) |
Merge pull request #1509 from emersion/gbm-fmt-mismatch
backend/drm: fix GBM format mismatch
Diffstat (limited to 'backend/drm/atomic.c')
-rw-r--r-- | backend/drm/atomic.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/drm/atomic.c b/backend/drm/atomic.c index fc649d68..c9fb1f45 100644 --- a/backend/drm/atomic.c +++ b/backend/drm/atomic.c @@ -172,7 +172,8 @@ static bool atomic_crtc_set_cursor(struct wlr_drm_backend *drm, atomic_begin(crtc, &atom); if (bo) { - set_plane_props(&atom, plane, crtc->id, get_fb_for_bo(bo), false); + uint32_t fb_id = get_fb_for_bo(bo, plane->drm_format); + set_plane_props(&atom, plane, crtc->id, fb_id, false); } else { atomic_add(&atom, plane->id, plane->props.fb_id, 0); atomic_add(&atom, plane->id, plane->props.crtc_id, 0); |