drm/amd/display: Block SubVP if hardware rotation is used in DML2.1
authorDillon Varone <dillon.varone@amd.com>
Fri, 31 May 2024 18:09:45 +0000 (14:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:25 +0000 (16:18 -0400)
[WHY&HOW]
SubVP is not supported when hardware rotation is in use.

Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@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 2e8c836..7272a04 100644 (file)
@@ -929,7 +929,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;
                        }
                }