From: Pekka Paalanen <pekka.paalanen@collabora.com>
To: <sunpeng.li@amd.com>
Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org,
"Joshua Ashton" <joshua@froggi.es>,
"Michel Dänzer" <mdaenzer@redhat.com>,
"Chao Guo" <chao.guo@nxp.com>,
"Xaver Hugl" <xaver.hugl@gmail.com>,
"Vikas Korjani" <Vikas.Korjani@amd.com>,
"Robert Mader" <robert.mader@posteo.de>,
"Sean Paul" <sean@poorly.run>, "Simon Ser" <contact@emersion.fr>,
"Shashank Sharma" <shashank.sharma@amd.com>,
"Harry Wentland" <harry.wentland@amd.com>,
"Sebastian Wick" <sebastian.wick@redhat.com>
Subject: Re: [PATCH 2/2] drm/amd/display: Move PRIMARY plane zpos higher
Date: Thu, 28 Mar 2024 17:20:27 +0200 [thread overview]
Message-ID: <20240328172027.46d0c4ae.pekka.paalanen@collabora.com> (raw)
In-Reply-To: <20240315170959.165505-3-sunpeng.li@amd.com>
[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]
On Fri, 15 Mar 2024 13:09:58 -0400
<sunpeng.li@amd.com> wrote:
> From: Leo Li <sunpeng.li@amd.com>
>
> [Why]
>
> Compositors have different ways of assigning surfaces to DRM planes for
> render offloading. It may decide between various strategies: overlay,
> underlay, or a mix of both
>
> One way for compositors to implement the underlay strategy is to assign
> a higher zpos to the DRM_PRIMARY plane than the DRM_OVERLAY planes,
> effectively turning the DRM_OVERLAY plane into an underlay plane.
>
> Today, amdgpu attaches an immutable zpos of 0 to the DRM_PRIMARY plane.
> This however, is an arbitrary restriction. DCN pipes are general
> purpose, and can be arranged in any z-order. To support compositors
> using this allocation scheme, we can set a non-zero immutable zpos for
> the PRIMARY, allowing the placement of OVERLAYS (mutable zpos range
> 0-254) beneath the PRIMARY.
>
> [How]
>
> Assign a zpos = #no of OVERLAY planes to the PRIMARY plane. Then, clean
> up any assumptions in the driver of PRIMARY plane having the lowest
> zpos.
This sounds good to me too. I suppose that means
Acked-by: Pekka Paalanen <pekka.paalanen@collabora.com>
for both patches. Or at least for their intentions. :-)
Thanks,
pq
> Signed-off-by: Leo Li <sunpeng.li@amd.com>
> ---
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 96 ++++++++++++++++++-
> .../amd/display/amdgpu_dm/amdgpu_dm_plane.c | 17 +++-
> 2 files changed, 104 insertions(+), 9 deletions(-)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2024-03-28 15:20 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 17:09 [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible sunpeng.li
2024-03-15 17:09 ` [PATCH 1/2] drm/amd/display: Introduce overlay cursor mode sunpeng.li
2024-03-16 8:38 ` kernel test robot
2024-03-21 21:39 ` Harry Wentland
2024-03-28 15:16 ` Pekka Paalanen
2024-03-28 15:48 ` Robert Mader
2024-03-28 15:52 ` Harry Wentland
2024-04-01 14:38 ` Leo Li
2024-03-15 17:09 ` [PATCH 2/2] drm/amd/display: Move PRIMARY plane zpos higher sunpeng.li
2024-03-21 21:36 ` Harry Wentland
2024-03-28 15:20 ` Pekka Paalanen [this message]
2024-03-28 14:33 ` [PATCH 0/2] drm/amdgpu/display: Make multi-plane configurations more flexible Pekka Paalanen
2024-04-03 21:32 ` Leo Li
2024-04-04 10:24 ` Pekka Paalanen
2024-04-04 13:59 ` Harry Wentland
2024-04-04 14:22 ` Marius Vlad
2024-04-11 20:33 ` Leo Li
2024-04-12 8:03 ` Pekka Paalanen
2024-04-12 14:28 ` Leo Li
2024-04-12 15:07 ` Pekka Paalanen
2024-04-12 15:31 ` Alex Deucher
2024-04-12 20:14 ` Leo Li
2024-04-15 8:19 ` Pekka Paalanen
2024-04-15 22:33 ` Leo Li
2024-04-16 8:01 ` Pekka Paalanen
2024-04-16 14:10 ` Harry Wentland
2024-04-17 18:51 ` Leo Li
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240328172027.46d0c4ae.pekka.paalanen@collabora.com \
--to=pekka.paalanen@collabora.com \
--cc=Vikas.Korjani@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=chao.guo@nxp.com \
--cc=contact@emersion.fr \
--cc=dri-devel@lists.freedesktop.org \
--cc=harry.wentland@amd.com \
--cc=joshua@froggi.es \
--cc=mdaenzer@redhat.com \
--cc=robert.mader@posteo.de \
--cc=sean@poorly.run \
--cc=sebastian.wick@redhat.com \
--cc=shashank.sharma@amd.com \
--cc=sunpeng.li@amd.com \
--cc=xaver.hugl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.