mbox series

[RFC,v2,0/3] drm: Add plane SIZE_HINTS property

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

Message

Ville Syrjälä March 21, 2023, 2:36 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

I was pondering how I'd be able to do non-square cursor
sizes without have a massive list of them in the SIZE_HINTS
blob.

So I came up with this idea of having a 2D bitmap in
there to indicate support for (mostly) POT non-square
sizes..

What does everyone think? Is this just getting too
complicated and should we just go with the original
"a list of suppored sizes" approach?

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ä (3):
  drm: Introduce plane SIZE_HINTS property
  drm/i915: Adjust cursor_size_ok() func calling convention
  drm/i915: Add SIZE_HINTS property for cursors

 drivers/gpu/drm/drm_mode_config.c           |  7 ++
 drivers/gpu/drm/drm_plane.c                 | 96 +++++++++++++++++++++
 drivers/gpu/drm/i915/display/intel_cursor.c | 96 ++++++++++++++-------
 include/drm/drm_mode_config.h               |  5 ++
 include/drm/drm_plane.h                     |  6 ++
 include/uapi/drm/drm_mode.h                 | 29 +++++++
 6 files changed, 208 insertions(+), 31 deletions(-)