mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
backend/drm: fallback to drmModeAddFB2
This commit is contained in:
parent
e07ffaa249
commit
e8057bb60c
5 changed files with 25 additions and 11 deletions
|
|
@ -172,7 +172,8 @@ static bool atomic_crtc_set_cursor(struct wlr_drm_backend *drm,
|
|||
atomic_begin(crtc, &atom);
|
||||
|
||||
if (bo) {
|
||||
uint32_t fb_id = get_fb_for_bo(bo, plane->drm_format);
|
||||
uint32_t fb_id =
|
||||
get_fb_for_bo(bo, plane->drm_format, 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