Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/tegra: Support the XBGR8888 pixelformat

While at it, also include the RGB565 pixelformat in the list of formats
supported by overlays.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Erik Faye-Lund <kusmabite@gmail.com>

+5
+5
drivers/gpu/host1x/drm/dc.c
··· 105 105 }; 106 106 107 107 static const uint32_t plane_formats[] = { 108 + DRM_FORMAT_XBGR8888, 108 109 DRM_FORMAT_XRGB8888, 110 + DRM_FORMAT_RGB565, 109 111 DRM_FORMAT_UYVY, 110 112 DRM_FORMAT_YUV420, 111 113 DRM_FORMAT_YUV422, ··· 545 543 unsigned int tegra_dc_format(uint32_t format) 546 544 { 547 545 switch (format) { 546 + case DRM_FORMAT_XBGR8888: 547 + return WIN_COLOR_DEPTH_R8G8B8A8; 548 + 548 549 case DRM_FORMAT_XRGB8888: 549 550 return WIN_COLOR_DEPTH_B8G8R8A8; 550 551