[Wayland-bugs] [Bug 101193] XWayland does not support scaling
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 6 12:59:38 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101193
Pekka Paalanen <ppaalanen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fourdan at xfce.org
--- Comment #3 from Pekka Paalanen <ppaalanen at gmail.com> ---
(In reply to Maciej Piechotka from comment #2)
> Personally I would like the RandR working on XWayland. I have HiDPI display
> and the non-HiDPI programs are suboptimal. I'd like to just set 1920x1080
> instead of 4K for them and be done with them. I don't know XWayland that
> well but I assume it renders to texture at some point to pass to compositor
> - I imagine it could render lower-res texture onto highier-res so to present
> highier-res image to compozitor.
Yet another orthogonal approach coming to mind is having Xwayland use the
output scale to divide the resolution it exposes to X11 clients. There is no
way to detect which "buffer scale" X11 clients use for drawing, which means we
pretty much have to just assume something, and scale=1 is the default. If the
output scale was 2, the Wayland compositor would automatically scale up to 2x.
This could work in the cases where the output is configured as HiDPI. I just
wonder if it would break something.
> Agree, at least partially. The most annoying thing is when game changes the
> resolution on exit of whole desktop. That said it might be needed for
> performance to use native resolution in full screen (this would be perf hack
> though, not configuration as it). That said I don't know (and most avenues I
> have would go under NDA) if this is the case and rendering texture might be
> fast enough.
It should not be needed, not for fullscreen apps at least. The trick is to get
the display device (CRTC) do the scaling on the fly, not changing the video
mode (monitor scaling) and not using the GPU (rendering pass for scaling).
There are essentially two ways to tell the Wayland compositor to scale things:
wl_viewport and output/buffer scales. Optimally the Wayland compositor will
defer the scaling to the display device.
Achieving monitor scaling, i.e. temporarily changing the video mode, would need
a Wayland protocol extension (which might be eventually developed anyway) and
it might be a bit hard in the Xwayland case as it would then apply to all X11
apps, not just the one that used RandR. That might be awkward to use in
practice.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170606/59231c80/attachment.html>
More information about the wayland-bugs
mailing list