D3504: Implment DRM EGL scaling
Roman Gilg
noreply at phabricator.kde.org
Sat Mar 25 16:58:22 UTC 2017
subdiff added a comment.
Just a heads up: Atomic mode setting allows to scale buffers / content of a plane directly instead of using GL. But I assume this would be possible to add later.
Something else: How does this work, when Gl / compositing is skipped (i.e. in my case for the direct scanout of a wayland buffer)? Is it then not scaling at all? We need to make sure that in this case the dimensions are still fine. Otherwise we need to restrict direct scanout to AMS only.
INLINE COMMENTS
> egl_gbm_backend.cpp:159
> o.output = drmOutput;
> - o.gbmSurface = gbm_surface_create(m_backend->gbmDevice(), drmOutput->size().width(), drmOutput->size().height(),
> + auto size = drmOutput->size() * drmOutput->scale();
> +
You could add to `struct Output` a value for that, which you then use in makeContextCurrent.
REPOSITORY
R108 KWin
REVISION DETAIL
https://phabricator.kde.org/D3504
To: davidedmundson, #plasma, graesslin
Cc: subdiff, graesslin, plasma-devel, kwin, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170325/cdd092c6/attachment-0001.html>
More information about the Plasma-devel
mailing list