diff options
author | Hamza Mahfooz <hamza.mahfooz@amd.com> | 2022-11-09 12:06:27 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-11-09 17:41:42 -0500 |
commit | d852871c6dd17b19ae12354be1eaf7037ac79221 (patch) | |
tree | b124fcadd6678d0ebb99c02512437571832bce06 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
parent | fcb4f9193ee550aad05c8d0f8f6637143e567c80 (diff) | |
download | linux-d852871c6dd17b19ae12354be1eaf7037ac79221.tar.gz linux-d852871c6dd17b19ae12354be1eaf7037ac79221.tar.bz2 linux-d852871c6dd17b19ae12354be1eaf7037ac79221.zip |
drm/amd/display: only fill dirty rectangles when PSR is enabled
Currently, we are calling fill_dc_dirty_rects() even if PSR isn't
supported by the relevant link in amdgpu_dm_commit_planes(), this is
undesirable especially because when drm.debug is enabled we are printing
messages in fill_dc_dirty_rects() that are only useful for debugging PSR
(and confusing otherwise). So, we can instead limit the filling of dirty
rectangles to only when PSR is enabled.
Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions