Andrew Geissler | c9f7865 | 2020-09-18 14:11:35 -0500 | [diff] [blame^] | 1 | Fix atomic modesetting with musl |
| 2 | |
| 3 | atomic modesetting seems to fail with drm weston backend and this patch fixes |
| 4 | it, below errors are seen before weston exits |
| 5 | |
| 6 | atomic: couldn't commit new state: Invalid argument |
| 7 | |
| 8 | Upstream-Status: Submitted [https://gitlab.freedesktop.org/wayland/weston/-/issues/158] |
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 10 | |
| 11 | --- a/libweston/backend-drm/kms.c |
| 12 | +++ b/libweston/backend-drm/kms.c |
| 13 | @@ -1168,8 +1168,8 @@ drm_pending_state_apply_atomic(struct dr |
| 14 | wl_list_for_each(plane, &b->plane_list, link) { |
| 15 | drm_debug(b, "\t\t[atomic] starting with plane %lu disabled\n", |
| 16 | (unsigned long) plane->plane_id); |
| 17 | - plane_add_prop(req, plane, WDRM_PLANE_CRTC_ID, 0); |
| 18 | - plane_add_prop(req, plane, WDRM_PLANE_FB_ID, 0); |
| 19 | + //plane_add_prop(req, plane, WDRM_PLANE_CRTC_ID, 0); |
| 20 | + //plane_add_prop(req, plane, WDRM_PLANE_FB_ID, 0); |
| 21 | } |
| 22 | |
| 23 | flags |= DRM_MODE_ATOMIC_ALLOW_MODESET; |