]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: use FB pitch to fill dc_cursor_attributes
authorSimon Ser <contact@emersion.fr>
Wed, 2 Dec 2020 21:09:07 +0000 (21:09 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:39:29 +0000 (17:39 -0500)
commitb334481fa7087cde215865892ba7bc9251d1326f
treee5d2743ee0fa457f33d9fe541cacb5766675941e
parent247e82efe1f7603e585422269bd170915cf0fbd3
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>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c