Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] drm/uapi: Intoduce DRM_MODE_DUMB_CURSOR
@ 2025-10-21 19:44 Ville Syrjala
  2025-10-21 19:44 ` [PATCH 1/5] drm/uapi: Validate DRM_IOCTL_MODE_CREATE_DUMB flags Ville Syrjala
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Ville Syrjala @ 2025-10-21 19:44 UTC (permalink / raw)
  To: dri-devel; +Cc: intel-gfx, intel-xe, Daniel Stone

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Currently DRM_IOCTL_MODE_CREATE_DUMB isn't really suitable for
allocating buffers for cursor planes (at least on Intel GPUs).

Introduce a new DRM_MODE_DUMB_CURSOR flag for
DRM_IOCTL_MODE_CREATE_DUMB so that userspace can tell us that
it wants a dumb buffer for a cursor plane. And implement support
fot the new flag in i915.

This is more of an RFC at this point to see what people think.
I haven't done any userspace changes yet. Figured I'd gauge
the general interest first...

Cc: Daniel Stone <daniels@collabora.com>

Ville Syrjälä (5):
  drm/uapi: Validate DRM_IOCTL_MODE_CREATE_DUMB flags
  drm/uapi: Introduce the DRM_MODE_DUMB_CURSOR flag
  drm/i915/dumb: Move the display dumb buffer stuff into the display
    code
  drm/i915/dumb: Reject dumb buffer that exceed max fb dimensions
  drm/i915/dumb: Handle DRM_MODE_DUMB_CURSOR

 drivers/gpu/drm/drm_dumb_buffers.c           |  2 +
 drivers/gpu/drm/i915/display/intel_cursor.c  | 38 ++++++++++++++
 drivers/gpu/drm/i915/display/intel_cursor.h  |  3 ++
 drivers/gpu/drm/i915/display/intel_display.c | 11 ++++
 drivers/gpu/drm/i915/display/intel_display.h |  3 ++
 drivers/gpu/drm/i915/display/intel_plane.c   | 39 ++++++++++++++
 drivers/gpu/drm/i915/display/intel_plane.h   |  4 ++
 drivers/gpu/drm/i915/gem/i915_gem_create.c   | 55 ++++++++++----------
 include/uapi/drm/drm_mode.h                  |  4 +-
 9 files changed, 130 insertions(+), 29 deletions(-)

-- 
2.49.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-10-21 23:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-21 19:44 [PATCH 0/5] drm/uapi: Intoduce DRM_MODE_DUMB_CURSOR Ville Syrjala
2025-10-21 19:44 ` [PATCH 1/5] drm/uapi: Validate DRM_IOCTL_MODE_CREATE_DUMB flags Ville Syrjala
2025-10-21 19:44 ` [PATCH 2/5] drm/uapi: Introduce the DRM_MODE_DUMB_CURSOR flag Ville Syrjala
2025-10-21 19:44 ` [PATCH 3/5] drm/i915/dumb: Move the display dumb buffer stuff into the display code Ville Syrjala
2025-10-21 19:44 ` [PATCH 4/5] drm/i915/dumb: Reject dumb buffer that exceed max fb dimensions Ville Syrjala
2025-10-21 19:44 ` [PATCH 5/5] drm/i915/dumb: Handle DRM_MODE_DUMB_CURSOR Ville Syrjala
2025-10-21 19:51 ` ✗ CI.checkpatch: warning for drm/uapi: Intoduce DRM_MODE_DUMB_CURSOR Patchwork
2025-10-21 19:52 ` ✓ CI.KUnit: success " Patchwork
2025-10-21 20:07 ` ✗ CI.checksparse: warning " Patchwork
2025-10-21 20:31 ` ✓ Xe.CI.BAT: success " Patchwork
2025-10-21 23:07 ` ✓ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox