]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58d7c5f12159885abde88d14a7ac154f4b5fd174
tree49b1d484fa677b7c88f9cbf7bfdc6f34ae697bdf
parentd383a99244f570eb746e9c2107b13fed411286d1
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