]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Add NV12/P010 formats to primary plane
authorHarry Wentland <harry.wentland@amd.com>
Thu, 15 Jan 2026 19:12:05 +0000 (14:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Mar 2026 14:55:14 +0000 (10:55 -0400)
Add NV12, NV21, and P010 YUV formats to the primary plane's supported
format list, enabling YUV content to be scanned out directly from the
primary plane.

Assisted-by: Claude: claude-sonnet-4.5
Reviewed-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c

index f8c21da62819d000a4fcf3c272aa4fc31e525bd1..af069cce0cb2879f4c7153b9cab788151e2540ec 100644 (file)
@@ -62,6 +62,9 @@ static const uint32_t rgb_formats[] = {
        DRM_FORMAT_XBGR8888,
        DRM_FORMAT_ABGR8888,
        DRM_FORMAT_RGB565,
+       DRM_FORMAT_NV21,
+       DRM_FORMAT_NV12,
+       DRM_FORMAT_P010
 };
 
 static const uint32_t overlay_formats[] = {