]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc6859df7d036c0e3f1c2afa695c5669f2038e4df
tree57dd8e00d60697626a20faef65bd2e0e502d897e
parentda5e7a23f718a867bf3c2058ea0ed0b862df32ec
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