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:
parent
1a8196b0b8
commit
8d5bc3a5b8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue