Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: venus: helper: do not set constrained parameters for UBWC

Plane constraints firmware interface is to override the default
alignment for a given color format. By default venus hardware has
alignments as 128x32, but NV12 was defined differently to meet
various usecases. Compressed NV12 has always been aligned as 128x32,
hence not needed to override the default alignment.

Fixes: bc28936bbba9 ("media: venus: helpers, hfi, vdec: Set actual plane constraints to FW")
Signed-off-by: Mansur Alisha Shaik <mansur@codeaurora.org>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Mansur Alisha Shaik and committed by
Mauro Carvalho Chehab
1ac61faf 09ea9719

+3
+3
drivers/media/platform/qcom/venus/helpers.c
··· 1137 1137 if (!IS_V6(inst->core)) 1138 1138 return 0; 1139 1139 1140 + if (inst->opb_fmt == HFI_COLOR_FORMAT_NV12_UBWC) 1141 + return 0; 1142 + 1140 1143 pconstraint.buffer_type = HFI_BUFFER_OUTPUT2; 1141 1144 pconstraint.num_planes = 2; 1142 1145 pconstraint.plane_format[0].stride_multiples = 128;