[PATCH 0/4] vkms: Switch to shadow-buffered plane state
Thomas Zimmermann
tzimmermann at suse.de
Mon Jul 5 07:46:29 UTC 2021
Vkms copies each plane's framebuffer into the output buffer; essentially
using a shadow buffer. DRM provides struct drm_shadow_plane_state, which
handles the details of mapping/unmapping shadow buffers into memory for
active planes.
Convert vkms to the helpers. Makes vkms use shared code and gives more
test exposure to shadow-plane helpers.
Thomas Zimmermann (4):
drm/gem: Export implementation of shadow-plane helpers
drm/vkms: Inherit plane state from struct drm_shadow_plane_state
drm/vkms: Let shadow-plane helpers prepare the plane's FB
drm/vkms: Use dma-buf mapping from shadow-plane state for composing
drivers/gpu/drm/drm_gem_atomic_helper.c | 55 ++++++++++++++++++++++--
drivers/gpu/drm/vkms/vkms_composer.c | 26 ++++++-----
drivers/gpu/drm/vkms/vkms_drv.h | 6 ++-
drivers/gpu/drm/vkms/vkms_plane.c | 57 ++++++-------------------
include/drm/drm_gem_atomic_helper.h | 6 +++
5 files changed, 86 insertions(+), 64 deletions(-)
base-commit: 3d3b5479895dd6dd133571ded4318adf595708ba
--
2.32.0
More information about the dri-devel
mailing list