Эх сурвалжийг харах

disp: msm: sde: only enable wb crop on cwb usecase

Writeback cropping should only be enabled in concurrent writeback
usecases, and otherwise can lead to writeback failures. This change
adds a check for this before enabling the feature.

Change-Id: I587c1e755810c836fb64291ec3b0005bc28efdc2
Signed-off-by: Nilaan Gunabalachandran <[email protected]>
Nilaan Gunabalachandran 4 жил өмнө
parent
commit
8b5e6c2feb

+ 1 - 1
msm/sde/sde_encoder_phys_wb.c

@@ -386,7 +386,7 @@ static void sde_encoder_phys_wb_setup_fb(struct sde_encoder_phys *phys_enc,
 	wb_cfg->dest.height = fb->height;
 	wb_cfg->dest.height = fb->height;
 	wb_cfg->dest.num_planes = wb_cfg->dest.format->num_planes;
 	wb_cfg->dest.num_planes = wb_cfg->dest.format->num_planes;
 
 
-	if (hw_wb->ops.setup_crop) {
+	if (hw_wb->ops.setup_crop && phys_enc->in_clone_mode) {
 		wb_cfg->crop.x = wb_cfg->roi.x;
 		wb_cfg->crop.x = wb_cfg->roi.x;
 		wb_cfg->crop.y = wb_cfg->roi.y;
 		wb_cfg->crop.y = wb_cfg->roi.y;