summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo Ma <hanghong.ma@amd.com>2024-10-11 14:08:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-14 20:03:52 +0100
commitcc97e79832fba780f15d687e91acf166fe872423 (patch)
tree5f5bb43097dda39b5c9e8233e2ff10db75c22331
parent9f0cb200f469ce52d116210c70e519dcff176f9e (diff)
downloadlinux-cc97e79832fba780f15d687e91acf166fe872423.tar.gz
linux-cc97e79832fba780f15d687e91acf166fe872423.tar.bz2
linux-cc97e79832fba780f15d687e91acf166fe872423.zip
drm/amd/display: Fix underflow when playing 8K video in full screen mode
[ Upstream commit 4007f07a47de4a277f4760cac3aed1b31d973eea ] [Why&How] Flickering observed while playing 8k HEVC-10 bit video in full screen mode with black border. We didn't support this case for subvp. Make change to the existing check to disable subvp for this corner case. Reviewed-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Leo Ma <hanghong.ma@amd.com> Signed-off-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c b/drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
index 4d6cf856cc96..8dee0d397e03 100644
--- a/drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
+++ b/drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
@@ -882,7 +882,7 @@ static void populate_dml21_plane_config_from_plane_state(struct dml2_context *dm
plane->immediate_flip = plane_state->flip_immediate;
plane->composition.rect_out_height_spans_vactive =
- plane_state->dst_rect.height >= stream->timing.v_addressable &&
+ plane_state->dst_rect.height >= stream->src.height &&
stream->dst.height >= stream->timing.v_addressable;
}