Commit 020f6704b5fbf687534ce53aeedc0364a995ae8a
Committed by
Keith Packard
1 parent
858fa03527
Exists in
master
and in
20 other branches
drm/i915: use pipe bpp when setting HDMI bpc
The Intel HDMI encoder can support 8bpc or 12bpc. Set the appropriate value based on the pipe bpp when configuring the output. Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Keith Packard <keithp@keithp.com>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/gpu/drm/i915/intel_hdmi.c
... | ... | @@ -131,6 +131,11 @@ |
131 | 131 | if (adjusted_mode->flags & DRM_MODE_FLAG_PHSYNC) |
132 | 132 | sdvox |= SDVO_HSYNC_ACTIVE_HIGH; |
133 | 133 | |
134 | + if (intel_crtc->bpp > 24) | |
135 | + sdvox |= COLOR_FORMAT_12bpc; | |
136 | + else | |
137 | + sdvox |= COLOR_FORMAT_8bpc; | |
138 | + | |
134 | 139 | /* Required on CPT */ |
135 | 140 | if (intel_hdmi->has_hdmi_sink && HAS_PCH_CPT(dev)) |
136 | 141 | sdvox |= HDMI_MODE_SELECT; |