Commit 1ac61faf authored by Mansur Alisha Shaik's avatar Mansur Alisha Shaik Committed by Mauro Carvalho Chehab

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: bc28936b ("media: venus: helpers, hfi, vdec: Set actual plane constraints to FW")
Signed-off-by: default avatarMansur Alisha Shaik <mansur@codeaurora.org>
Reviewed-by: default avatarBryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 09ea9719
...@@ -1137,6 +1137,9 @@ int venus_helper_set_format_constraints(struct venus_inst *inst) ...@@ -1137,6 +1137,9 @@ int venus_helper_set_format_constraints(struct venus_inst *inst)
if (!IS_V6(inst->core)) if (!IS_V6(inst->core))
return 0; return 0;
if (inst->opb_fmt == HFI_COLOR_FORMAT_NV12_UBWC)
return 0;
pconstraint.buffer_type = HFI_BUFFER_OUTPUT2; pconstraint.buffer_type = HFI_BUFFER_OUTPUT2;
pconstraint.num_planes = 2; pconstraint.num_planes = 2;
pconstraint.plane_format[0].stride_multiples = 128; pconstraint.plane_format[0].stride_multiples = 128;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment