OSDN Git Service

drm/amd/display: Implement zpos property
authorJoshua Ashton <joshua@froggi.es>
Sun, 9 Jul 2023 02:06:58 +0000 (03:06 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Jul 2023 15:08:53 +0000 (11:08 -0400)
commit5b29369b5488d54e466ef7c6a2020a4efc1d854f
treee7cab34cba62826ca1314e5e81e82ed3fcb2efad
parent2b413c022964e910340ee7dca7167d4eb6ec07ed
drm/amd/display: Implement zpos property

Despite certain GPUs supporting multiple overlay planes already in
AMDGPU, the driver did not expose the zpos property which is required
for userspace to take advantage of multiple overlay planes in any
meaningful way.

The driver was already hooked up to normalized_zpos, but was just
missing the exposure of it.

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Melissa Wen <mwen@igalia.com>
Cc: Simon Ser <contact@emersion.fr>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Joshua Ashton <joshua@froggi.es>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c