mirror_ubuntu-kernels/drivers/gpu/drm/amd
Simon Ser 03a6636730 drm/amd/display: use FB pitch to fill dc_cursor_attributes
Instead of relying on pitch (in pixels) == width, use the FB pitch. This
is less confusing to readers, and works correctly if we ever support FBs
with a pitch (in pixels) != width.

This also makes the code symmetrical with fill_plane_buffer_attributes.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Simon Ser <contact@emersion.fr>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Cc: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2020-12-02 17:39:29 -05:00
..
acp drm: amd/acp: fix broken menu structure 2020-03-13 11:52:35 -04:00
amdgpu drm/amdgpu/vcn3.0: remove old DPG workaround 2020-12-02 17:37:07 -05:00
amdkfd drm/amdkfd: Put ACPI table after using it 2020-11-13 17:29:46 -05:00
display drm/amd/display: use FB pitch to fill dc_cursor_attributes 2020-12-02 17:39:29 -05:00
include drm/amd/include/dimgrey_cavefish_ip_offset: Mark top-level IP_BASE as __maybe_unused 2020-11-24 12:09:53 -05:00
pm drm/amdgpu/swsmu/renoir: simplify sensor handling (v2) 2020-12-02 17:37:18 -05:00