mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: rob.clark@oss.qualcomm.com, Robert Mader <robert.mader@collabora.com>
Cc: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>,
	Dmitry Baryshkov	 <lumag@kernel.org>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Jessica Zhang	 <jesszhan0024@gmail.com>,
	Sean Paul <sean@poorly.run>,
	Marijn Suijten	 <marijn.suijten@somainline.org>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Maarten Lankhorst	 <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	 Thomas Zimmermann <tzimmermann@suse.de>,
	Bryan O'Donoghue <bod@kernel.org>,
	Stanimir Varbanov	 <stanimir.varbanov@linaro.org>,
	linux-arm-msm@vger.kernel.org,  dri-devel@lists.freedesktop.org,
	freedreno@lists.freedesktop.org,  linux-kernel@vger.kernel.org,
	Jordan Crouse <jordan@cosmicpenguin.net>,
	 linux-media@vger.kernel.org,
	Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	 Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Neil Armstrong <neil.armstrong@linaro.org>
Subject: Re: [PATCH 7/7] media: qcom: iris: describe QC10C as TP10
Date: Thu, 05 Nov 2026 15:30:23 -0500	[thread overview]
Message-ID: <062fe7dca00f77dac05197552d22897b28dc2143.camel@collabora.com> (raw)
In-Reply-To: <CACSVV02t9=tm2qyG531f8Ne90ADAb1_ZDDGEg7PwDmoEvGxPrQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2606 bytes --]

Le mercredi 04 novembre 2026 à 14:11 -0800, Rob Clark a écrit :
> On Wed, Nov 4, 2026 at 11:00 AM Robert Mader <robert.mader@collabora.com> wrote:
> > 
> > Nice, very happy to see the series!
> > 
> > On 04.11.26 17:36, Dmitry Baryshkov wrote:
> > > The comment describing the QC10C buffer layout calls it a compressed
> > > P010. It is not:
> > 
> > If I'm not mistaken the display engine / the DRM side (including Mesa)
> > describes it as P010+QCOM_COMPRESSED as well, and so does my pending
> > Gstreamer MR [1] . So if we can't pretend that QC10C ==
> > P010+QCOM_COMPRESSED, then we probably need a DRM_FORMAT_TP10, wire that
> > up everywhere etc. OTOH if we want to keep the DRM side as is, then the
> > comment should reflect that, IMO.
> 
> IMHO we need DRM_FORMAT_TP10.. on the GPU side, we have TP10 and P010
> as distinct formats, both with and without UBWC.  I'm not sure if the
> same is true on video side but P010+UBWC was never exposed, or if it
> truely only supports linear P010 and UBWC TP10.

Xilinx ZynMP is all matching TP10 (they had GEY and YUV semi-planar variants),
but they never upstreamed it, hence why we don't have it in V4L2. Just fyi, we
named it creatively NV12_10LE32 in GStreamer, but careful, I cannot guaranty the
padding in on the same side.

Though, how do we deal with backward compat here?

> 
> BR,
> -R
> 
> > Best regards,
> > 
> > Robert
> > 
> > 1: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8195
> > 
> > > P010 stores each sample in 16 bits, QC10C packs three
> > > 10-bit samples in each 32-bit word, which is what the stride computed
> > > below (width * 4 / 3) assumes. Name the format correctly.
> > > 
> > > Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
> > > ---
> > >   drivers/media/platform/qcom/iris/iris_buffer.c | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/drivers/media/platform/qcom/iris/iris_buffer.c b/drivers/media/platform/qcom/iris/iris_buffer.c
> > > index eb8de60c1177..ec2bf2a2d953 100644
> > > --- a/drivers/media/platform/qcom/iris/iris_buffer.c
> > > +++ b/drivers/media/platform/qcom/iris/iris_buffer.c
> > > @@ -266,7 +266,7 @@ static u32 iris_yuv_buffer_size_qc08c(struct iris_inst *inst)
> > > 
> > >   /*
> > >    * QC10C:
> > > - * UBWC-compressed format for P010.
> > > + * UBWC-compressed TP10, YUV 4:2:0 with three 10 bit samples packed in 32 bits.
> > >    * Contains 4 planes in the following order -
> > >    * (A) Y_Meta_Plane
> > >    * (B) Y_UBWC_Plane
> > > 

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  parent reply	other threads:[~2026-11-05 20:30 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 16:36 [PATCH 0/7] drm/msm, media: define the UBWC buffer layout Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 1/7] drm/msm/dpu: fix the comment on the RGB UBWC plane count Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 2/7] drm/msm: move the UBWC plane size calculation out of DPU Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 3/7] drm/msm: check UBWC framebuffers against their layout Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 4/7] drm/fourcc: describe the Qualcomm UBWC layout Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 5/7] media: docs: pixfmt-reserved: describe the QC08C and QC10C layout Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 6/7] media: venus: report the QC10C data stride Dmitry Baryshkov
2026-11-04 16:36 ` [PATCH 7/7] media: qcom: iris: describe QC10C as TP10 Dmitry Baryshkov
2026-11-04 18:59   ` Robert Mader
2026-11-04 22:11     ` Rob Clark
2026-11-05 12:35       ` Robert Mader
2026-11-05 13:01         ` Rob Clark
2026-11-05 20:34         ` Nicolas Dufresne
2026-11-05 20:52           ` Rob Clark
2026-11-05 20:30       ` Nicolas Dufresne [this message]
2026-11-05 21:07         ` Rob Clark
2026-11-05 20:38   ` Nicolas Dufresne

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=062fe7dca00f77dac05197552d22897b28dc2143.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=airlied@gmail.com \
    --cc=bod@kernel.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=dmitry.baryshkov@oss.qualcomm.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=freedreno@lists.freedesktop.org \
    --cc=jesszhan0024@gmail.com \
    --cc=jordan@cosmicpenguin.net \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=lumag@kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=marijn.suijten@somainline.org \
    --cc=mchehab@kernel.org \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=rob.clark@oss.qualcomm.com \
    --cc=robert.mader@collabora.com \
    --cc=sean@poorly.run \
    --cc=simona@ffwll.ch \
    --cc=stanimir.varbanov@linaro.org \
    --cc=tzimmermann@suse.de \
    --cc=vikash.garodia@oss.qualcomm.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

all inboxes | Powered by JetHome®