summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display
diff options
context:
space:
mode:
authorAustin Zheng <Austin.Zheng@amd.com>2024-07-23 17:26:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2024-08-06 11:11:02 -0400
commit7b2363e06c0ff4b868e7d768d605a9e656ff61f3 (patch)
tree0fc2dc41a69fa0e6a7c07d42bc04d8d25d7304d0 /drivers/gpu/drm/amd/display
parent5aacf8917fde5bc2a640f3cd49130c0e2e85e726 (diff)
downloadlinux-7b2363e06c0ff4b868e7d768d605a9e656ff61f3.tar.gz
linux-7b2363e06c0ff4b868e7d768d605a9e656ff61f3.tar.bz2
linux-7b2363e06c0ff4b868e7d768d605a9e656ff61f3.zip
drm/amd/display: Disable SubVP if Hardware Rotation is Used
[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>
Diffstat (limited to 'drivers/gpu/drm/amd/display')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
index 9331a8fe77c9..9c6397aafd38 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c
@@ -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;
}
}