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.

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 <[email protected]>
---
  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

Reply via email to