Skip to content

Commit 1ac61fa

Browse files
Mansur Alisha Shaikmchehab
authored andcommitted
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: bc28936 ("media: venus: helpers, hfi, vdec: Set actual plane constraints to FW") Signed-off-by: Mansur Alisha Shaik <[email protected]> Reviewed-by: Bryan O'Donoghue <[email protected]> Signed-off-by: Stanimir Varbanov <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 09ea971 commit 1ac61fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/media/platform/qcom/venus/helpers.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,9 @@ int venus_helper_set_format_constraints(struct venus_inst *inst)
11371137
if (!IS_V6(inst->core))
11381138
return 0;
11391139

1140+
if (inst->opb_fmt == HFI_COLOR_FORMAT_NV12_UBWC)
1141+
return 0;
1142+
11401143
pconstraint.buffer_type = HFI_BUFFER_OUTPUT2;
11411144
pconstraint.num_planes = 2;
11421145
pconstraint.plane_format[0].stride_multiples = 128;

0 commit comments

Comments
 (0)