drm/amd/display: combine dirty rectangles in DMUB FW
authorDavid Zhang <dingchen.zhang@amd.com>
Fri, 29 Apr 2022 19:55:16 +0000 (15:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:40:45 +0000 (14:40 -0400)
commit1da5dab029c08e178784a0750203365ea7c3b4f4
tree57dd8e00d60697626a20faef65bd2e0e502d897e
parentb3d0c0f2dfbe610ae5ac6b2d70dd450645dce3cb
drm/amd/display: combine dirty rectangles in DMUB FW

[why]
In PSR-SU design, the DMUB FW handles the combination of multiple
dirty rectangles.

[how]
- create DC dmub update dirty rectangle helper which sends the
  dirty rectangles per pipe from DC to DMUB, and DMUB FW will
  handle to combine the dirty RECTs
- call the helper from DC commit plane update function.

Signed-off-by: David Zhang <dingchen.zhang@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/dc_stream.h