diff options
author | Simon Ser <contact@emersion.fr> | 2024-02-21 12:35:52 +0100 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2024-02-21 15:10:44 +0000 |
commit | 0d9ffef7747402734803441d312034926bff951e (patch) | |
tree | 039fa575eb5c78e1a78880e7de45e814534b8e9c /include | |
parent | d8f4a3d78c6eaf090c101de8a5a9b1bd85a369e4 (diff) |
backend/drm: don't destroy previous DRM master blobs
On startup, we fetch the previous MODE_ID blob ID so that
compositors can keep using the previous mode if they want to.
However, that blob doesn't belong to us, it belongs to the
previous DRM master. As a result, we get an error when trying to
destroy it.
Fix this by tracking whether the blob belongs to us or not.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3811
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/drm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index e2c74a9f..cea53f44 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -61,6 +61,7 @@ struct wlr_drm_crtc { struct wl_list layers; // wlr_drm_layer.link // Atomic modesetting only + bool own_mode_id; uint32_t mode_id; uint32_t gamma_lut; |