mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-10 11:25:12 +07:00
drm/amd/display: Add assertion for invalid surface dimensions
Signed-off-by: Corbin McElhanney <corbin.mcelhanney@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
dcf6c1456e
commit
556ee1b75c
@ -1258,8 +1258,10 @@ void dc_update_surfaces_and_stream(struct dc *dc,
|
||||
srf_updates->surface->src_rect.height == 0 &&
|
||||
srf_updates->surface->dst_rect.width == 0 &&
|
||||
srf_updates->surface->dst_rect.height == 0 &&
|
||||
!srf_updates->scaling_info)
|
||||
!srf_updates->scaling_info) {
|
||||
ASSERT(false);
|
||||
return;
|
||||
}
|
||||
|
||||
update_type = dc_check_update_surfaces_for_stream(
|
||||
dc, srf_updates, surface_count, stream_update, stream_status);
|
||||
|
Loading…
Reference in New Issue
Block a user