mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 12:55:24 -04:00
drm/amd/display: scaling changes should also be a full update
Signed-off-by: Aric Cyr <aric.cyr@amd.com> Reviewed-by: Jun Lei <Jun.Lei@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -1577,7 +1577,7 @@ static enum surface_update_type get_scaling_info_update_type(
|
||||
|
||||
update_flags->bits.scaling_change = 1;
|
||||
if (u->scaling_info->src_rect.width > u->surface->src_rect.width
|
||||
&& u->scaling_info->src_rect.height > u->surface->src_rect.height)
|
||||
|| u->scaling_info->src_rect.height > u->surface->src_rect.height)
|
||||
/* Making src rect bigger requires a bandwidth change */
|
||||
update_flags->bits.clock_change = 1;
|
||||
}
|
||||
@@ -1591,11 +1591,11 @@ static enum surface_update_type get_scaling_info_update_type(
|
||||
update_flags->bits.position_change = 1;
|
||||
|
||||
if (update_flags->bits.clock_change
|
||||
|| update_flags->bits.bandwidth_change)
|
||||
|| update_flags->bits.bandwidth_change
|
||||
|| update_flags->bits.scaling_change)
|
||||
return UPDATE_TYPE_FULL;
|
||||
|
||||
if (update_flags->bits.scaling_change
|
||||
|| update_flags->bits.position_change)
|
||||
if (update_flags->bits.position_change)
|
||||
return UPDATE_TYPE_MED;
|
||||
|
||||
return UPDATE_TYPE_FAST;
|
||||
|
||||
Reference in New Issue
Block a user