aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorGeorge Shen <[email protected]>2022-11-01 23:03:03 -0400
committerAlex Deucher <[email protected]>2022-11-15 13:18:48 -0500
commit4d285241230676ba8b888701b89684b4e0360fcc (patch)
tree5796a5a60aaf69c56152dadc35b67fca3a1f00b4 /lib/mpi/mpi-sub-ui.c
parent7e952a18eb978a3e51fc1704b752378be66226b2 (diff)
drm/amd/display: Fix calculation for cursor CAB allocation
[Why] The cursor size (in memory) is currently incorrectly calculated, resulting not enough CAB being allocated for static screen cursor in MALL refresh. This results in cursor image corruption. [How] Use cursor pitch instead of cursor width when calculating cursor size. Update num cache lines calculation to use the result of the cursor size calculation instead of manually recalculating again. Reviewed-by: Alvin Lee <[email protected]> Acked-by: Tom Chung <[email protected]> Signed-off-by: George Shen <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.0.x
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions