summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorThierry Reding <thierry.reding@avionic-design.de>2013-02-21 08:11:57 +0100
committerThierry Reding <thierry.reding@avionic-design.de>2013-02-22 08:21:35 +0100
commit84ff6b270893cd8b054bae371a315c905ffa3ac9 (patch)
tree246e62c85ad887f33d18c58481fd21b3855af09d /drivers/gpu/drm
parent3b9e71eae5ac5ded28ad1dcded7c01ae73dd9581 (diff)
downloadlinux-stable-84ff6b270893cd8b054bae371a315c905ffa3ac9.tar.gz
linux-stable-84ff6b270893cd8b054bae371a315c905ffa3ac9.tar.bz2
linux-stable-84ff6b270893cd8b054bae371a315c905ffa3ac9.zip
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: Thierry Reding <thierry.reding@avionic-design.de>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/tegra/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/tegra/dc.c b/drivers/gpu/drm/tegra/dc.c
index 20864002cf39..bf8095c55bd1 100644
--- a/drivers/gpu/drm/tegra/dc.c
+++ b/drivers/gpu/drm/tegra/dc.c
@@ -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;
}