drm/amd/display: Expose support for DRM_FORMAT_RGB565
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 15 Apr 2019 14:27:50 +0000 (10:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 19 Apr 2019 16:32:24 +0000 (11:32 -0500)
DC and DM already support DRM_FORMAT_RGB565, it's just missing from the
list of valid formats.

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 0546811..fb24898 100644 (file)
@@ -4188,6 +4188,7 @@ static const uint32_t rgb_formats[] = {
        DRM_FORMAT_ABGR2101010,
        DRM_FORMAT_XBGR8888,
        DRM_FORMAT_ABGR8888,
+       DRM_FORMAT_RGB565,
 };
 
 static const uint32_t overlay_formats[] = {