mbox series

[0/2] drm: Add plane SIZE_HINTS property

Message ID 20230208040911.12590-1-ville.syrjala@linux.intel.com (mailing list archive)
Headers show
Series drm: Add plane SIZE_HINTS property | expand

Message

Ville Syrjälä Feb. 8, 2023, 4:09 a.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Proposal for a new plane SIZE_HINTS property to essentially
replace the cursor size caps, based on recent discussion
in this gitlab bug:
https://gitlab.freedesktop.org/drm/intel/-/issues/7687

As for userspace, so far I only did a quick modetest
blob decoder (mainly to verify that it looks correct):
https://gitlab.freedesktop.org/vsyrjala/libdrm/-/commits/plane_size_hints

Didn't yet update my modesetting ddx cursor size patch
to use this or anything.

Cc: Simon Ser <contact@emersion.fr>
Cc: Jonas Ådahl <jadahl@redhat.com>
Cc: Daniel Stone <daniel@fooishbar.org>
Cc: Pekka Paalanen <pekka.paalanen@collabora.com>

Ville Syrjälä (2):
  drm: Introduce plane SIZE_HINTS property
  drm/i915: Add SIZE_HINTS property for cursors

 drivers/gpu/drm/drm_mode_config.c           |  7 +++++
 drivers/gpu/drm/drm_plane.c                 | 33 +++++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_cursor.c | 24 +++++++++++++++
 include/drm/drm_mode_config.h               |  5 ++++
 include/drm/drm_plane.h                     |  4 +++
 include/uapi/drm/drm_mode.h                 |  5 ++++
 6 files changed, 78 insertions(+)