mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
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
This commit is contained in:
parent
d8f4a3d78c
commit
0d9ffef774
4 changed files with 11 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue