mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/drm: add support for SIZE_HINTS property
This property allows the driver to advertise support for multiple cursor sizes. On Intel, using a smaller buffer size reduces power consumption. References: https://lore.kernel.org/dri-devel/20240227193523.5601-2-ville.syrjala@linux.intel.com/
This commit is contained in:
parent
6f63f55ace
commit
a35b4f059d
7 changed files with 106 additions and 17 deletions
|
|
@ -29,6 +29,9 @@ struct wlr_drm_plane {
|
|||
|
||||
struct wlr_drm_format_set formats;
|
||||
|
||||
struct wlr_output_cursor_size *cursor_sizes;
|
||||
size_t cursor_sizes_len;
|
||||
|
||||
struct wlr_drm_plane_props props;
|
||||
|
||||
uint32_t initial_crtc_id;
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ struct wlr_drm_plane_props {
|
|||
uint32_t type;
|
||||
uint32_t rotation; // Not guaranteed to exist
|
||||
uint32_t in_formats; // Not guaranteed to exist
|
||||
uint32_t size_hints; // Not guaranteed to exist
|
||||
|
||||
// atomic-modesetting only
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue