ValveSoftware/gamescope

Make KMS "rotation" prop optional for non-libliftoff codepath

Open

#252 opened on Sep 3, 2021

View on GitHub
 (4 comments) (0 reactions) (0 assignees)C++ (355 forks)github user discovery
embeddedgood first issue

Repository metrics

Stars
 (4,809 stars)
PR merge metrics
 (PR metrics pending)

Description

Commit https://github.com/Plagman/gamescope/commit/8782dc2cd110ef169e7d5abf5e40c94763bf7a05 made the KMS "rotation" property mandatory. However some drivers don't support it: https://drmdb.emersion.fr/properties/4008636142/rotation

libliftoff can deal with this already: https://github.com/emersion/libliftoff/blob/bc0d0617acdd48e69272771237cad2684c07c901/plane.c#L245

However the "basic" codepath doesn't have this fallback.

  • If the "rotation" prop exists, set it.
  • If gamescope is rotated but the "rotation" prop doesn't exist, error out.
  • If gamescope is not rotated and the "rotation" prop doesn't exist, ignore.

Contributor guide