提交 84ff6b27 编写于 作者: T Thierry Reding

drm/tegra: Fix color expansion

bpp stores the number of bytes per pixel, but color expansion needs to
be enabled for less than 24 bits per pixel.
Signed-off-by: NThierry Reding <thierry.reding@avionic-design.de>
上级 3b9e71ea
......@@ -500,7 +500,7 @@ int tegra_dc_setup_window(struct tegra_dc *dc, unsigned int index,
tegra_dc_writel(dc, 0x0000, DC_WIN_CSC_KVB);
value |= CSC_ENABLE;
} else if (bpp < 24) {
} else if (window->bits_per_pixel < 24) {
value |= COLOR_EXPAND;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册