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

drm/tegra: plane: Fix RGB565 format on older Tegra

The opaque/alpha format conversion code is currently only looking at
XRGB formats because they have an equivalent ARGB format. The opaque
format for RGB565 is RGB565 itself, much like the YUV formats map to
themselves.

Reported-by: Dmitry Osipenko <digetx@gmail.com>
Fixes: ebae8d07435a ("drm/tegra: dc: Implement legacy blending")
Signed-off-by: Thierry Reding <treding@nvidia.com>

+4
+4
drivers/gpu/drm/tegra/plane.c
··· 297 297 case WIN_COLOR_DEPTH_B8G8R8X8: 298 298 *alpha = WIN_COLOR_DEPTH_B8G8R8A8; 299 299 return 0; 300 + 301 + case WIN_COLOR_DEPTH_B5G6R5: 302 + *alpha = opaque; 303 + return 0; 300 304 } 301 305 302 306 return -EINVAL;