Re: [PATCH v6 1/6] media: qcom: iris: Improve format alignment for encoder

From: Dmitry Baryshkov

Date: Tue May 12 2026 - 11:53:34 EST


On Fri, Nov 14, 2025 at 11:08:58AM +0800, Wangao Wang wrote:
> Add members enc_raw_width, enc_raw_height to the struct iris_inst to
> support codec alignment requirements.
>
> HFI_PROP_RAW_RESOLUTION needs to be set to the actual YUV resolution.

Why? What is wrong with using the existing fields? If you want to set
defaults, can you set the existing field intead of adding extra fields?

>
> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
> Reviewed-by: Dikshita Agarwal <dikshita.agarwal@xxxxxxxxxxxxxxxx>
> Tested-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> # on SM8650-HDK
> Signed-off-by: Wangao Wang <wangao.wang@xxxxxxxxxxxxxxxx>
> ---
> drivers/media/platform/qcom/iris/iris_hfi_gen2_command.c | 3 +--
> drivers/media/platform/qcom/iris/iris_instance.h | 4 ++++
> drivers/media/platform/qcom/iris/iris_venc.c | 6 ++++++
> 3 files changed, 11 insertions(+), 2 deletions(-)
>

--
With best wishes
Dmitry