Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • xserver xserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 933
    • Issues 933
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 123
    • Merge requests 123
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.

  • xorgxorg
  • xserverxserver
  • Merge requests
  • !861

Draft: Add native mode to Xrandr emulation for (fractional) scaling

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Robert Mader requested to merge rmader/xserver:native-mode-fractional-scaling into master Jan 28, 2022
  • Overview 23
  • Commits 1
  • Pipelines 4
  • Changes 3

It would be great if Xwayland clients could render at the native resultion, at least in fullscreen, when (fractional) scaling is used in the Wayland compositor. We can archive that by using the existing Xrandr mode emulation, based on wp_viewporter, in a reversed way. As the scaling happens on the compositor level (possibly even in hardware planes), we only have to ensure a 1-1 mapping of the backing buffer with the native screen resolution, while the viewport destination size matches the logical resolution.

It discovers the native resolution using wl_output and allows me to run games such as Xonotic to be sharply rendered in native resolution (tested with 1920x1080) in a Gnome session with 125% scaling. The correct values are also detected on KDE and Sway.

Edited Jan 28, 2022 by Robert Mader
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: native-mode-fractional-scaling