]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
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 054681113d7109338697cd3263b47c14ac5f5ad6..fb248984b7ba4434dd1018b930d934031570de24 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[] = {