Re: [PATCH] media: iris: Fix encoder reference buffer size calculation

From: Vikash Garodia

Date: Fri Nov 27 2026 - 07:37:10 EST



On 10/31/2026 1:43 AM, Vishnu Reddy wrote:
For frame widths that are not multiples of 128, such as 864, the
encoder reference buffer size is underestimated. As a result, the
firmware reports a session error when starting the encode session.

The encoder requires the reference buffer width to be aligned to 128,
but the current calculation aligns it to only 32. Align the width to
128 when calculating the reference buffer size.

Fixes: 61528e86687e ("media: iris: Allocate and queue internal buffers for encoder video device")
Cc:stable@xxxxxxxxxxxxxxx
Signed-off-by: Vishnu Reddy<busanna.reddy@xxxxxxxxxxxxxxxx>
---
drivers/media/platform/qcom/iris/iris_vpu_buffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>