drm: fixup cursor fb rotation cases

This commit is contained in:
Vaxry 2024-07-18 12:30:43 +02:00
parent dcac376308
commit a6f1ad1560

View file

@ -1237,7 +1237,7 @@ void Aquamarine::SDRMConnector::rollbackCommit(const SDRMConnectorCommitData& da
void Aquamarine::SDRMConnector::onPresent() { void Aquamarine::SDRMConnector::onPresent() {
crtc->primary->last = crtc->primary->front; crtc->primary->last = crtc->primary->front;
crtc->primary->front = crtc->primary->back; crtc->primary->front = crtc->primary->back;
if (crtc->cursor && crtc->cursor->back /* Don't shift if it hasn't updated */) { if (crtc->cursor) {
crtc->cursor->last = crtc->cursor->front; crtc->cursor->last = crtc->cursor->front;
crtc->cursor->front = crtc->cursor->back; crtc->cursor->front = crtc->cursor->back;
} }