drm/amd/display: Disable SubVP if Hardware Rotation is Used
authorAustin Zheng <Austin.Zheng@amd.com>
Tue, 23 Jul 2024 21:26:47 +0000 (17:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Aug 2024 15:11:02 +0000 (11:11 -0400)
[Why and How]
SubVP is not supported when hardware rotation is being used

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c

index 9331a8fe77c9df594d5e7c8daae71146aa61a470..9c6397aafd385bc8ef7a3cbd4a57b3f9a11dfa60 100644 (file)
@@ -1058,7 +1058,8 @@ static bool all_timings_support_svp(const struct dml2_pmo_instance *pmo,
 
                        /* check recout height covers entire otg vactive, and single plane */
                        if (num_planes_per_stream[plane_descriptor->stream_index] > 1 ||
-                                       !plane_descriptor->composition.rect_out_height_spans_vactive) {
+                                       !plane_descriptor->composition.rect_out_height_spans_vactive ||
+                                       plane_descriptor->composition.rotation_angle != dml2_rotation_0) {
                                return false;
                        }
                }