drm/amd/display: add plane size change check condition
authorLewis Huang <Lewis.Huang@amd.com>
Fri, 16 Nov 2018 11:12:46 +0000 (19:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:04:34 +0000 (15:04 -0500)
commitebd084cd6509313307bc3b8fd9695f65aee8ff96
tree49b1d484fa677b7c88f9cbf7bfdc6f34ae697bdf
parentd5cf79eeda52045bc685939b86975944312f688f
drm/amd/display: add plane size change check condition

[Why]
Driver didn't check plane size and surface size is mismatch.
It will cause pitch data incorrect.

[How]
Add condition to check is plane change and update surface

Signed-off-by: Lewis Huang <Lewis.Huang@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c