D25907: [platforms/drm] Introduce Gl post-process output rotations

Roman Gilg <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
romangg created this revision.
romangg added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
romangg requested review of this revision.

REVISION SUMMARY
  In case the hardware is not able to rotate the output for the configured
  rotation value do this rotation in a post-process step.
  
  For that rendering the current view into a separate framebuffer bound to a
  texture that then gets sampled to the default framebuffer in an additional
  rendering pass through a simple shader rotating it.
  
  This allows us to leave the Effects system and internal model-view-projection
  matrix untouched. The rotation in the post-processing step is isolated.

TEST PLAN
  With KScreen all rotations work.

REPOSITORY
  R108 KWin

BRANCH
  post-process-rotation

REVISION DETAIL
  https://phabricator.kde.org/D25907

AFFECTED FILES
  plugins/platforms/drm/drm_output.cpp
  plugins/platforms/drm/egl_gbm_backend.cpp
  plugins/platforms/drm/egl_gbm_backend.h

To: romangg, #kwin
Cc: kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.