Skip to content

drm/vboxvideo: Use struct drm_shadow_plane_state for cursor plane

Thomas Zimmermann dri-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 0 repliesNew
  2. v22 patches 5 repliesSuperseded

Changes in v3 from the cover letter

* documentation fixes (Daniel)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/gem: Export helpers for shadow-buffered planesdrivers/gpu/drm/drm_gem_atomic_helper.c include/drm/drm_gem_atomic_helper.h+174 -60 replies
2/2drm/vboxvideo: Implement cursor plane with struct drm_shadow_plane_statedrivers/gpu/drm/vboxvideo/vbox_mode.c+7 -210 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDaniel VetterHans de Goede
1/2R-b T-b
2/2R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] drm/vboxvideo: Use struct drm_shadow_plane_state for cursor plane

Functions in the atomic commit tail are not allowed to acquire the dmabuf's reservation lock. So we cannot legally call the GEM object's vmap functionality in atomic_update.

But, much better, we can use drm_shadow_plane_state to do all the mapping for us. Patch 1 exports the helpers for shadow-buffered planes from the DRM KMS helper library and adds documentation on how to use them. Patch 2 replaces the vmap code in vbox' cursor update code with a the helpers for shadow-buffered planes.

v3:
* documentation fixes (Daniel)
v2:
* rebuilt with shadow-buffered planes

Thomas Zimmermann (2):
drm/gem: Export helpers for shadow-buffered planes drm/vboxvideo: Implement cursor plane with struct
drm_shadow_plane_state

 drivers/gpu/drm/drm_gem_atomic_helper.c | 148 +++++++++++++++++++++++-
 drivers/gpu/drm/vboxvideo/vbox_mode.c   |  28 ++---
 include/drm/drm_gem_atomic_helper.h     |  32 +++++
 3 files changed, 181 insertions(+), 27 deletions(-)

--
2.30.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel