OSDN Git Service

drm/amd/display: add cursor pitch check
authorSimon Ser <contact@emersion.fr>
Wed, 2 Dec 2020 21:09:13 +0000 (21:09 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 2 Dec 2020 22:39:29 +0000 (17:39 -0500)
commit9bf1019c5f3f11ab615c2d531868d1fe9887e560
treef539b79d19dcaecc4d0b375601b9771e5484be76
parent03a663673063d04c2358be754a08e62a465bb8f0
drm/amd/display: add cursor pitch check

Replace the width check with a pitch check, which matches DM internals.
Add a new check to make sure the pitch (in pixels) matches the width.

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