drm: don't rollback cursors on test

This commit is contained in:
Vaxry 2024-07-30 15:55:39 +02:00
parent 9ccb4411ee
commit 7c3565f9be

View file

@ -1316,7 +1316,11 @@ void Aquamarine::SDRMConnector::applyCommit(const SDRMConnectorCommitData& data)
}
void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& data) {
// cursors are applied regardless.
// cursors are applied regardless,
// unless this was a test
if (data.test)
return;
if (crtc->cursor && data.cursorFB)
crtc->cursor->back = data.cursorFB;