Re: [PATCH RFC 1/7] media: qcom: iris: add QC10C & P010 buffer size calculations
From: Neil Armstrong
Date: Thu Apr 09 2026 - 03:26:25 EST
On 4/9/26 01:59, Dmitry Baryshkov wrote:
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
Ack
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
I literally took the head comment of the QC08C buffer size function and replaced 8 by 10...
+ */