From: "José Expósito" <jose.exposito89@gmail.com>
To: louis.chauvet@bootlin.com
Cc: airlied@gmail.com, dri-devel@lists.freedesktop.org,
hamohammed.sa@gmail.com, linux-kernel@vger.kernel.org,
maarten.lankhorst@linux.intel.com, melissa.srw@gmail.com,
mripard@kernel.org, simona@ffwll.ch,
thomas.petazzoni@bootlin.com, tzimmermann@suse.de
Subject: [PATCH 0/2] drm/vkms: Fix plane blending z-order
Date: Mon, 1 Sep 2025 16:52:05 +0200 [thread overview]
Message-ID: <20250901145206.51213-1-jose.exposito89@gmail.com> (raw)
In-Reply-To: <20250801-vkms-fix-zpos-v1-0-d83ba1e6291d@bootlin.com>
Hi Louis,
I already made some comments about zpos here:
https://lore.kernel.org/dri-devel/aJDDr_9soeNRAmm0@fedora/
But let's start the conversation here as well!
> As reported by Marius [1], the current blending algorithm for vkms planes
> is not future-proof. Currently the z-ordering is only garanteed by the
> creation order. As the future ConfigFS interface will allows to create
> planes, this order may vary.
>
> To avoid this, add the zpos property and blend the planes according to
> this zpos order.
>
> [1]:https://lore.kernel.org/all/aHpGGxZyimpJ8Ehz@xpredator/
In case you want to have a look, 3 years ago I sent a patch adding the
property and blending following the zpos order, but it wasn't merged:
https://github.com/JoseExposito/linux/commit/befc79a1341b27eb328b582c3841097d17ccce71
The way "vkms_state->active_planes" is set is a bit simpler, but it might
not be valid anymore due to code changes.
About this series, I didn't have a chance to run IGT test to validate it,
but in general your code looks good.
My only question is, how do we avoid breaking changes in the configfs side?
For the mutable/immutable configuration it'd be easy: We set it to
immutable by default, i.e, when the user creates a new plane via configfs:
$ sudo mkdir /sys/kernel/config/vkms/<device name>/planes/<plane name>
We set "planes/<plane name>/zpos_mutability" to immutable.
However, we don't know the plane type (required to set the zpos value) when
the user creates a new plane on configfs.
Therefore, we can not set the correct value in "planes/<plane name>/zpos".
Have you already figured out a solution for this?
Jose
PS - In case you missed it, I created:
https://github.com/JoseExposito/vkmsctl
I'll add zpos there once we support it in configfs :)
next prev parent reply other threads:[~2025-09-01 14:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-01 14:43 Louis Chauvet
2025-08-01 14:43 ` [PATCH 1/2] drm/vkms: Add zpos property to planes Louis Chauvet
2025-08-01 14:43 ` [PATCH 2/2] drm/vkms: Properly order plane for blending Louis Chauvet
2025-09-01 14:52 ` José Expósito [this message]
2025-09-01 15:33 ` [PATCH 0/2] drm/vkms: Fix plane blending z-order Louis Chauvet
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=20250901145206.51213-1-jose.exposito89@gmail.com \
--to=jose.exposito89@gmail.com \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hamohammed.sa@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=louis.chauvet@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=melissa.srw@gmail.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=thomas.petazzoni@bootlin.com \
--cc=tzimmermann@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®