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

Roman Gilg noreply at phabricator.kde.org
Wed Dec 11 20:29:12 GMT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwin/attachments/20191211/e499ba6f/attachment.html>


More information about the kwin mailing list