Skip to content

Commit f87f3b8

Browse files
Jessica ZhangAbhinav Kumar
authored andcommitted
drm/msm/dpu: don't always program merge_3d block
Only program the merge_3d block for the video phys encoder when the 3d blend mode is not NONE Fixes: 3e79527 ("drm/msm/dpu: enable merge_3d support on sm8150/sm8250") Suggested-by: Abhinav Kumar <[email protected]> Signed-off-by: Jessica Zhang <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/619095/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Abhinav Kumar <[email protected]>
1 parent 40dad89 commit f87f3b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ static void dpu_encoder_phys_vid_setup_timing_engine(
302302
intf_cfg.stream_sel = 0; /* Don't care value for video mode */
303303
intf_cfg.mode_3d = dpu_encoder_helper_get_3d_blend_mode(phys_enc);
304304
intf_cfg.dsc = dpu_encoder_helper_get_dsc(phys_enc);
305-
if (phys_enc->hw_pp->merge_3d)
305+
if (intf_cfg.mode_3d && phys_enc->hw_pp->merge_3d)
306306
intf_cfg.merge_3d = phys_enc->hw_pp->merge_3d->idx;
307307

308308
spin_lock_irqsave(phys_enc->enc_spinlock, lock_flags);

0 commit comments

Comments
 (0)