dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/3] drm/vkms: add overlay plane support
@ 2021-02-20 14:37 Melissa Wen
  2021-02-24  9:15 ` Thomas Zimmermann
  0 siblings, 1 reply; 2+ messages in thread
From: Melissa Wen @ 2021-02-20 14:37 UTC (permalink / raw)
  To: Rodrigo Siqueira, Haneen Mohammed, Daniel Vetter, Simon Ser,
	Sumera Priyadarsini, David Airlie
  Cc: dri-devel

Adding support to overlay type in addition to primary and cursor plane.
The planes composition relies on the z order of the active planes and
only occurs if there is a primary plane (as in the current behavior).

The first patch decouples cursor from crtc_init. It initializes the CRTC
only with primary plane, and setup the cursor plane externally. This is
a preparation to allow to initialize the overlay plane between primary
and cursor.

The second patch generalize variables and functions names to refer to
any kind of plane, not only cursor. The goal is to reuse them for
blending overlay and cursor planes to primary.

The third patch creates a module option to enable overlay, and includes
overlay to supported types of plane. When the overlay option is enabled,
one overlay plane is initialized (plus primary and cursor) and it is
included in the planes composition.

This work preserves the current results of IGT tests: kms_cursor_crc;
kms_flip and kms_writeback. In addition, subtests related to overlay in
kms_atomic and kms_plane_cursor start to pass (pointed out in the commit
message).

Melissa Wen (3):
  drm/vkms: decouple cursor plane setup from crtc_init
  drm/vkms: rename cursor to plane on ops of planes composition
  drm/vkms: add overlay support

 drivers/gpu/drm/vkms/vkms_composer.c | 49 ++++++++++++++++------------
 drivers/gpu/drm/vkms/vkms_crtc.c     |  4 +--
 drivers/gpu/drm/vkms/vkms_drv.c      |  5 +++
 drivers/gpu/drm/vkms/vkms_drv.h      |  3 +-
 drivers/gpu/drm/vkms/vkms_output.c   | 31 ++++++++++++++----
 drivers/gpu/drm/vkms/vkms_plane.c    | 20 +++++++++---
 6 files changed, 76 insertions(+), 36 deletions(-)

-- 
2.30.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [RFC PATCH 0/3] drm/vkms: add overlay plane support
  2021-02-20 14:37 [RFC PATCH 0/3] drm/vkms: add overlay plane support Melissa Wen
@ 2021-02-24  9:15 ` Thomas Zimmermann
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Zimmermann @ 2021-02-24  9:15 UTC (permalink / raw)
  To: Melissa Wen, Rodrigo Siqueira, Haneen Mohammed, Daniel Vetter,
	Simon Ser, Sumera Priyadarsini, David Airlie
  Cc: dri-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 2457 bytes --]

Hi

Am 20.02.21 um 15:37 schrieb Melissa Wen:
> Adding support to overlay type in addition to primary and cursor plane.
> The planes composition relies on the z order of the active planes and
> only occurs if there is a primary plane (as in the current behavior).
> 
> The first patch decouples cursor from crtc_init. It initializes the CRTC
> only with primary plane, and setup the cursor plane externally. This is
> a preparation to allow to initialize the overlay plane between primary
> and cursor.
> 
> The second patch generalize variables and functions names to refer to
> any kind of plane, not only cursor. The goal is to reuse them for
> blending overlay and cursor planes to primary.

It's not directly relevant to the patchset here, but sort-of related.

Vkms is effectively shadow buffered. I'd like to promote the new helpers 
for shadow-buffered planes in drm_gem_atomic_helper.h.

There's plane state and helper functions available that automatically 
vmap and vunmap framebuffer BOs. You can safe the rsp code in vkms. It 
would also help with testing the shadow-plane helpers.

Best regards
Thomas

> 
> The third patch creates a module option to enable overlay, and includes
> overlay to supported types of plane. When the overlay option is enabled,
> one overlay plane is initialized (plus primary and cursor) and it is
> included in the planes composition.
> 
> This work preserves the current results of IGT tests: kms_cursor_crc;
> kms_flip and kms_writeback. In addition, subtests related to overlay in
> kms_atomic and kms_plane_cursor start to pass (pointed out in the commit
> message).
> 
> Melissa Wen (3):
>    drm/vkms: decouple cursor plane setup from crtc_init
>    drm/vkms: rename cursor to plane on ops of planes composition
>    drm/vkms: add overlay support
> 
>   drivers/gpu/drm/vkms/vkms_composer.c | 49 ++++++++++++++++------------
>   drivers/gpu/drm/vkms/vkms_crtc.c     |  4 +--
>   drivers/gpu/drm/vkms/vkms_drv.c      |  5 +++
>   drivers/gpu/drm/vkms/vkms_drv.h      |  3 +-
>   drivers/gpu/drm/vkms/vkms_output.c   | 31 ++++++++++++++----
>   drivers/gpu/drm/vkms/vkms_plane.c    | 20 +++++++++---
>   6 files changed, 76 insertions(+), 36 deletions(-)
> 

-- 
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2021-02-24  9:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-20 14:37 [RFC PATCH 0/3] drm/vkms: add overlay plane support Melissa Wen
2021-02-24  9:15 ` Thomas Zimmermann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).