Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/drm_output.cpp
Show First 20 Lines • Show All 835 Lines • ▼ Show 20 Line(s) | 832 | #endif | |||
---|---|---|---|---|---|
836 | 836 | | |||
837 | if (!doAtomicCommit(AtomicCommitMode::Test)) { | 837 | if (!doAtomicCommit(AtomicCommitMode::Test)) { | ||
838 | //TODO: When we use planes for layered rendering, fallback to renderer instead. Also for direct scanout? | 838 | //TODO: When we use planes for layered rendering, fallback to renderer instead. Also for direct scanout? | ||
839 | //TODO: Probably should undo setNext and reset the flip list | 839 | //TODO: Probably should undo setNext and reset the flip list | ||
840 | qCDebug(KWIN_DRM) << "Atomic test commit failed. Aborting present."; | 840 | qCDebug(KWIN_DRM) << "Atomic test commit failed. Aborting present."; | ||
841 | // go back to previous state | 841 | // go back to previous state | ||
842 | if (m_lastWorkingState.valid) { | 842 | if (m_lastWorkingState.valid) { | ||
843 | m_mode = m_lastWorkingState.mode; | 843 | m_mode = m_lastWorkingState.mode; | ||
844 | 844 | setOrientation(m_lastWorkingState.orientation); | |||
845 | // TODO: Add API back to set orientation from backend | | |||
846 | // setOrientation(m_lastWorkingState.orientation); | | |||
847 | | ||||
848 | setGlobalPos(m_lastWorkingState.globalPos); | 845 | setGlobalPos(m_lastWorkingState.globalPos); | ||
849 | if (m_primaryPlane) { | 846 | if (m_primaryPlane) { | ||
850 | m_primaryPlane->setTransformation(m_lastWorkingState.planeTransformations); | 847 | m_primaryPlane->setTransformation(m_lastWorkingState.planeTransformations); | ||
851 | } | 848 | } | ||
852 | m_modesetRequested = true; | 849 | m_modesetRequested = true; | ||
853 | // the cursor might need to get rotated | 850 | // the cursor might need to get rotated | ||
854 | updateCursor(); | 851 | updateCursor(); | ||
855 | showCursor(); | 852 | showCursor(); | ||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |