diff options
| author | George Shen <george.shen@amd.com> | 2024-06-14 21:13:43 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2024-07-01 16:06:53 -0400 |
| commit | ac01f6ad710c41c8c2cfab24be8bb71586bf8c44 (patch) | |
| tree | ad75898e64debb6a2cca362bd2a54fb2a19e767b /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c | |
| parent | drm/amd/display: Reset freesync config before update new state (diff) | |
| download | linux-ac01f6ad710c41c8c2cfab24be8bb71586bf8c44.tar.gz linux-ac01f6ad710c41c8c2cfab24be8bb71586bf8c44.zip | |
drm/amd/display: Fix divide by zero in CURSOR_DST_X_OFFSET calculation
[Why]
Certain situations cause pipes to have a recout of 0, such as when the
dst_rect lies completely outside of a given ODM slice.
[How]
Skip calculation that transforms cursor coordinates to viewport space.
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@amd.com>
Signed-off-by: George Shen <george.shen@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c')
0 files changed, 0 insertions, 0 deletions
