Re: [PATCH RFC 1/7] media: qcom: iris: add QC10C & P010 buffer size calculations
From: Dmitry Baryshkov
Date: Wed Apr 08 2026 - 20:00:08 EST
On Wed, Apr 08, 2026 at 06:43:54PM +0200, Neil Armstrong wrote:
> The P010 (YUV format with 16-bits per pixel with interleaved UV)
10-bit, but with 16-bit alignment
> and QC10C (P010 compressed mode similar to QC08C) requires specific
> buffer calculations to allocate the right buffer size for DPB frames
> and frames consumed by userspace.
>
> Similar to 8bit, the 10bit DPB frames uses QC10C format.
>
> Signed-off-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx>
> ---
> drivers/media/platform/qcom/iris/iris_buffer.c | 81 +++++++++++++++++++++++++-
> 1 file changed, 80 insertions(+), 1 deletion(-)
> @@ -204,6 +226,55 @@ static u32 iris_yuv_buffer_size_qc08c(struct iris_inst *inst)
> return ALIGN(y_meta_plane + y_plane + uv_meta_plane + uv_plane, PIXELS_4K);
> }
>
> +/*
> + * QC10C:
> + * Compressed Macro-tile format for TP10.
UBWC-compressed format
> + */
--
With best wishes
Dmitry