Просмотр исходного кода

drm/amd/display: RV stereo support

Fix moving directly from frame packed to frame sequential mode: disable
OTG_3D_STRUCTURE_EN if the stereo mode is not frame packed.

Signed-off-by: Ken Chalmers <ken.chalmers@amd.com>
Reviewed-by: Vitaly Prosyak <Vitaly.Prosyak@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Ken Chalmers 8 лет назад
Родитель
Сommit
061d349945
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c

+ 4 - 4
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_timing_generator.c

@@ -1082,11 +1082,11 @@ static void dcn10_enable_stereo(struct timing_generator *tg,
 			REG_UPDATE(OTG_STEREO_CONTROL,
 				OTG_DISABLE_STEREOSYNC_OUTPUT_FOR_DP, 1);
 
-		if (flags->PROGRAM_STEREO && flags->FRAME_PACKED)
+		if (flags->PROGRAM_STEREO)
 			REG_UPDATE_3(OTG_3D_STRUCTURE_CONTROL,
-				OTG_3D_STRUCTURE_EN, 1,
-				OTG_3D_STRUCTURE_V_UPDATE_MODE, 1,
-				OTG_3D_STRUCTURE_STEREO_SEL_OVR, 1);
+				OTG_3D_STRUCTURE_EN, flags->FRAME_PACKED,
+				OTG_3D_STRUCTURE_V_UPDATE_MODE, flags->FRAME_PACKED,
+				OTG_3D_STRUCTURE_STEREO_SEL_OVR, flags->FRAME_PACKED);
 
 	}