From: Marius Vlad <marius.vlad@collabora.com>
To: Shengyu Qu <wiagn233@outlook.com>
Cc: alexander.deucher@amd.com, christian.koenig@amd.com,
airlied@gmail.com, simona@ffwll.ch, harry.wentland@amd.com,
sunpeng.li@amd.com, siqueira@igalia.com,
maarten.lankhorst@linux.intel.com, mripard@kernel.org,
tzimmermann@suse.de, contact@rafaelrc.com, lijo.lazar@amd.com,
jesse.zhang@amd.com, tim.huang@amd.com, dark_sylinc@yahoo.com.ar,
mario.limonciello@amd.com, alex.hung@amd.com,
aurabindo.pillai@amd.com, sunil.khatri@amd.com,
chiahsuan.chung@amd.com, mwen@igalia.com, Roman.Li@amd.com,
Wayne.Lin@amd.com, dominik.kaszewski@amd.com, alvin.lee2@amd.com,
Aric.Cyr@amd.com, Austin.Zheng@amd.com, Sung.Lee@amd.com,
PeiChen.Huang@amd.com, dillon.varone@amd.com,
Richard.Chiang@amd.com, ryanseto@amd.com, linux@treblig.org,
haoping.liu@amd.com, Relja.Vojvodic@amd.com, Yihan.Zhu@amd.com,
Samson.Tam@amd.com, amd-gfx@lists.freedesktop.org,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
wayland-devel@lists.freedesktop.org
Subject: Re: [PATCH v2 0/2] Add "pixel_encoding" to switch between RGB & YUV color modes
Date: Tue, 26 Aug 2025 10:24:46 +0300 [thread overview]
Message-ID: <aK1hPoCmLziaPPOd@xpredator> (raw)
In-Reply-To: <TY4PR01MB14432B688209B2AA416A95228983EA@TY4PR01MB14432.jpnprd01.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 2198 bytes --]
Hi,
Prior work towards this is/was: https://lore.kernel.org/dri-devel/20240115160554.720247-1-andri@yngvason.is/
I have slightly modified version of that, but still working on
getting another driver (besides amd/i915) working with it.
On Tue, Aug 26, 2025 at 02:39:59AM +0800, Shengyu Qu wrote:
> Usage:
> - X11: xrandr --output <output name> --set "pixel encoding" <encoding>
> - Wayland: proptest -M amdgpu -D <card path> <connector ID> connector
> <pixel encoding ID> <encoding (ID)>
> - Kernel Param: amdgpu.pixel_encoding=<encoding>
> or amdgpu.pixel_encoding=<monitor>:<encoding>,<monitor>:<encoding>
>
> Supported encodings are: "auto" (0) (Default and original behavior), "rgb"
> (1), "ycbcr444" (2), "ycbcr422" (4), and "ycbcr420" (8).
>
> This patch series allow users to switch between pixel encodings, which is
> specially important when auto gets it wrong (probably because of monitor's
> manufacturer mistake) and needs user intervention.
>
> Changes since v1:
> - Some cleanup and rebase
> - Added YUV422 support
>
> Full discussion:
> https://gitlab.freedesktop.org/drm/amd/-/issues/476#note_2628536
>
> Original patch by Yassine Imounachen, current version is modified based on
> this patch(was rebased by Rafael Carvalho):
> https://lists.freedesktop.org/archives/amd-gfx/2024-October/116195.html
>
> Shengyu Qu (2):
> drm/connector: Add "pixel_encoding" to switch between RGB & YUV color
> output modes
> drm/amdgpu: Add "pixel_encoding" DRM connector property support for
> amdgpu
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 36 +++
> drivers/gpu/drm/amd/amdgpu/amdgpu_display.h | 3 +
> drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | 2 +
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 273 +++++++++++++++++-
> .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h | 1 +
> drivers/gpu/drm/amd/display/dc/core/dc.c | 8 +
> drivers/gpu/drm/amd/display/dc/dc_stream.h | 2 +
> drivers/gpu/drm/drm_modes.c | 32 ++
> include/drm/drm_connector.h | 7 +
> 9 files changed, 353 insertions(+), 11 deletions(-)
>
> --
> 2.43.0
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-08-26 7:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-25 18:39 [PATCH v2 0/2] Add "pixel_encoding" to switch between RGB & YUV color modes Shengyu Qu
2025-08-26 7:24 ` Marius Vlad [this message]
2025-08-26 16:26 ` Shengyu Qu
2025-08-27 8:21 ` Marius Vlad
2025-08-27 9:41 ` Maxime Ripard
2025-08-27 10:39 ` Daniel Stone
2025-08-27 11:08 ` Sebastian Wick
2025-09-01 21:32 ` Sebastian Wick
2025-08-27 11:21 ` Maxime Ripard
2025-08-27 11:36 ` Daniel Stone
2025-08-27 11:40 ` Maxime Ripard
2025-08-27 15:36 ` Shengyu Qu
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=aK1hPoCmLziaPPOd@xpredator \
--to=marius.vlad@collabora.com \
--cc=Aric.Cyr@amd.com \
--cc=Austin.Zheng@amd.com \
--cc=PeiChen.Huang@amd.com \
--cc=Relja.Vojvodic@amd.com \
--cc=Richard.Chiang@amd.com \
--cc=Roman.Li@amd.com \
--cc=Samson.Tam@amd.com \
--cc=Sung.Lee@amd.com \
--cc=Wayne.Lin@amd.com \
--cc=Yihan.Zhu@amd.com \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=alvin.lee2@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=chiahsuan.chung@amd.com \
--cc=christian.koenig@amd.com \
--cc=contact@rafaelrc.com \
--cc=dark_sylinc@yahoo.com.ar \
--cc=dillon.varone@amd.com \
--cc=dominik.kaszewski@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=haoping.liu@amd.com \
--cc=harry.wentland@amd.com \
--cc=jesse.zhang@amd.com \
--cc=lijo.lazar@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@treblig.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mario.limonciello@amd.com \
--cc=mripard@kernel.org \
--cc=mwen@igalia.com \
--cc=ryanseto@amd.com \
--cc=simona@ffwll.ch \
--cc=siqueira@igalia.com \
--cc=sunil.khatri@amd.com \
--cc=sunpeng.li@amd.com \
--cc=tim.huang@amd.com \
--cc=tzimmermann@suse.de \
--cc=wayland-devel@lists.freedesktop.org \
--cc=wiagn233@outlook.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 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).