drm/amd/display: Limit nv21 dst_y
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Thu, 30 Apr 2020 19:38:04 +0000 (15:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 21 Apr 2023 12:50:21 +0000 (08:50 -0400)
commit44243719117171e947317a1aca4625c317f7dcb0
tree38c346a4eaa1ed1c399c38832ebdfe00deef5d22
parent2c30f85551211a48f7be57499a6fcb4ad00875da
drm/amd/display: Limit nv21 dst_y

Dst_y can become negative in extreme odm 4to1 cases. While not strictly
invalid, this should be limited to 0 for rq/dlg/ttu calculation.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@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/dml/dcn30/display_rq_dlg_calc_30.c