]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
drm/amd/display: add basic atomic check for cursor plane
authorSimon Ser <contact@emersion.fr>
Mon, 30 Mar 2020 09:23:21 +0000 (09:23 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 May 2020 20:24:45 +0000 (16:24 -0400)
commite133020f92b9397eaad83ff1dada6d9786edcbd0
treea69f9f46e3dc53545272eab9a2005477ee8f98cd
parentb931e199f16e1e29cb1728e8aa9d27b9f8978cb1
drm/amd/display: add basic atomic check for cursor plane

This patch adds a basic cursor check when an atomic test-only commit is
performed. The position and size of the cursor plane is checked.

This should fix user-space relying on atomic checks to assign buffers to
planes.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reported-by: Roman Gilg <subdiff@gmail.com>
References: https://github.com/emersion/libliftoff/issues/46
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Harry Wentland <hwentlan@amd.com>
Reviewed-by: 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