From: Thomas Zimmermann <tzimmermann@suse.de>
To: Icenowy Zheng <zhengxingda@iscas.ac.cn>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
Icenowy Zheng <uwu@icenowy.me>
Subject: Re: [PATCH 1/2] drm/verisilicon: add primary modifier for format tables
Date: Thu, 10 Sep 2026 13:03:23 +0200 [thread overview]
Message-ID: <5ba5cc8c-37fc-4490-a4d4-0ede476035de@suse.de> (raw)
In-Reply-To: <20260910095000.3505878-1-zhengxingda@iscas.ac.cn>
Hi
Am 10.09.26 um 11:49 schrieb Icenowy Zheng:
> Currently the format tables are only used for the primary plane.
>
> Add primary modifiers to names related to the tables.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
for both patches.
> ---
> drivers/gpu/drm/verisilicon/vs_hwdb.c | 12 ++++++------
> drivers/gpu/drm/verisilicon/vs_hwdb.h | 4 ++--
> drivers/gpu/drm/verisilicon/vs_primary_plane.c | 4 ++--
> 3 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/drivers/gpu/drm/verisilicon/vs_hwdb.c b/drivers/gpu/drm/verisilicon/vs_hwdb.c
> index 2a0f7c59afa3a..56aa450443068 100644
> --- a/drivers/gpu/drm/verisilicon/vs_hwdb.c
> +++ b/drivers/gpu/drm/verisilicon/vs_hwdb.c
> @@ -10,7 +10,7 @@
> #include "vs_dc_top_regs.h"
> #include "vs_hwdb.h"
>
> -static const u32 vs_formats_array_no_yuv444[] = {
> +static const u32 vs_primary_formats_array_no_yuv444[] = {
> DRM_FORMAT_XRGB4444,
> DRM_FORMAT_XBGR4444,
> DRM_FORMAT_RGBX4444,
> @@ -44,7 +44,7 @@ static const u32 vs_formats_array_no_yuv444[] = {
> /* TODO: non-RGB formats */
> };
>
> -static const u32 vs_formats_array_with_yuv444[] = {
> +static const u32 vs_primary_formats_array_with_yuv444[] = {
> DRM_FORMAT_XRGB4444,
> DRM_FORMAT_XBGR4444,
> DRM_FORMAT_RGBX4444,
> @@ -79,13 +79,13 @@ static const u32 vs_formats_array_with_yuv444[] = {
> };
>
> static const struct vs_formats vs_formats_no_yuv444 = {
> - .array = vs_formats_array_no_yuv444,
> - .num = ARRAY_SIZE(vs_formats_array_no_yuv444)
> + .primary_array = vs_primary_formats_array_no_yuv444,
> + .primary_num = ARRAY_SIZE(vs_primary_formats_array_no_yuv444)
> };
>
> static const struct vs_formats vs_formats_with_yuv444 = {
> - .array = vs_formats_array_with_yuv444,
> - .num = ARRAY_SIZE(vs_formats_array_with_yuv444)
> + .primary_array = vs_primary_formats_array_with_yuv444,
> + .primary_num = ARRAY_SIZE(vs_primary_formats_array_with_yuv444)
> };
>
> static struct vs_chip_identity vs_chip_identities[] = {
> diff --git a/drivers/gpu/drm/verisilicon/vs_hwdb.h b/drivers/gpu/drm/verisilicon/vs_hwdb.h
> index 2065ecb730437..616076d931a57 100644
> --- a/drivers/gpu/drm/verisilicon/vs_hwdb.h
> +++ b/drivers/gpu/drm/verisilicon/vs_hwdb.h
> @@ -10,8 +10,8 @@
> #include <linux/types.h>
>
> struct vs_formats {
> - const u32 *array;
> - unsigned int num;
> + const u32 *primary_array;
> + unsigned int primary_num;
> };
>
> struct vs_chip_identity {
> diff --git a/drivers/gpu/drm/verisilicon/vs_primary_plane.c b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> index 1f2be41ae496c..8e94491693019 100644
> --- a/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> +++ b/drivers/gpu/drm/verisilicon/vs_primary_plane.c
> @@ -168,8 +168,8 @@ struct drm_plane *vs_primary_plane_init(struct drm_device *drm_dev, struct vs_dc
>
> plane = drmm_universal_plane_alloc(drm_dev, struct drm_plane, dev, 0,
> &vs_primary_plane_funcs,
> - dc->identity.formats->array,
> - dc->identity.formats->num,
> + dc->identity.formats->primary_array,
> + dc->identity.formats->primary_num,
> NULL,
> DRM_PLANE_TYPE_PRIMARY,
> NULL);
--
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Frankenstr. 146, 90461 Nürnberg, Germany, www.suse.com
GF: Jochen Jaser, Andrew McDonald, (HRB 36809, AG Nürnberg)
next prev parent reply other threads:[~2026-09-10 11:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-10 9:49 Icenowy Zheng
2026-09-10 9:50 ` [PATCH 2/2] drm/verisilicon: remove ARGB formats from primary plane Icenowy Zheng
2026-09-10 11:03 ` Thomas Zimmermann [this message]
2026-09-16 10:01 ` [PATCH 1/2] drm/verisilicon: add primary modifier for format tables Icenowy Zheng
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=5ba5cc8c-37fc-4490-a4d4-0ede476035de@suse.de \
--to=tzimmermann@suse.de \
--cc=airlied@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=simona@ffwll.ch \
--cc=uwu@icenowy.me \
--cc=zhengxingda@iscas.ac.cn \
/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®