Skip to content

Commit

Permalink
drm: don't rollback cursors on test
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Jul 30, 2024
1 parent 9ccb441 commit 7c3565f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7c3565f

Please sign in to comment.