Skip to content

Commit

Permalink
drm/tegra: Fix color expansion
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Feb 22, 2013
1 parent 3b9e71e commit 84ff6b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tegra/dc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 84ff6b2

Please sign in to comment.