Skip to content

drm/surface: Make sure we also reset pending#2021

Open
Drakulix wants to merge 1 commit into
masterfrom
fix/drm-reset-pending
Open

drm/surface: Make sure we also reset pending#2021
Drakulix wants to merge 1 commit into
masterfrom
fix/drm-reset-pending

Conversation

@Drakulix
Copy link
Copy Markdown
Member

@Drakulix Drakulix commented May 4, 2026

It is possible to end up in the very unfortunate situation of just setting the pending state of a DrmSurface before a call to DrmDevice::pause.

This seems like a good thing, because after activate, we presumably will transition to the new pending state without loosing any user operation. However a suspend/resume cycle might render the Mode-blob created and set in the pending state invalid... Theoretically a connector could also disappear (with MST).

Since most compositor will re-evaluate the current state and then apply their output configuration anew after a suspend/resume cycle anyway, I argue we should simply reset pending to the current state as well.

Description

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant