drm/amd/display: refactor dirty rect dmub command decision
authorRobin Chen <po-tchen@amd.com>
Fri, 22 Apr 2022 09:25:38 +0000 (17:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Jun 2022 20:09:57 +0000 (16:09 -0400)
commit2ff6a14b20298db0763772b62cd4fb030e6d7f75
tree95688c726830a01a5e8ff77c49d2f76bf58db08a
parentf9f4daf15398c3aa0aa2dcd05ed4ea2544bcc62c
drm/amd/display: refactor dirty rect dmub command decision

[Why]
To wrap the decision logic of sending dirty rect dmub command
for both frame update and cursor update path.

Signed-off-by: Robin Chen <po-tchen@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@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/dcn10/dcn10_hw_sequencer.c