mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-19 12:50:21 +02:00
drm/i915: Configure overlay cc_out precision based on crtc gamma config
Put the overlay color conversion unit into 10bit mode if the pipe isn't using the 8bit legacy gamma. Not 100% sure this is what the intention of the bit was but makes at least some sense to me. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191028113036.27553-4-ville.syrjala@linux.intel.com Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
0e12b4e31f
commit
e0b5d48e55
|
@ -785,9 +785,13 @@ static int intel_overlay_do_put_image(struct intel_overlay *overlay,
|
|||
i915_gem_object_flush_frontbuffer(new_bo, ORIGIN_DIRTYFB);
|
||||
|
||||
if (!overlay->active) {
|
||||
u32 oconfig;
|
||||
const struct intel_crtc_state *crtc_state =
|
||||
overlay->crtc->config;
|
||||
u32 oconfig = 0;
|
||||
|
||||
oconfig = OCONF_CC_OUT_8BIT;
|
||||
if (crtc_state->gamma_enable &&
|
||||
crtc_state->gamma_mode == GAMMA_MODE_MODE_8BIT)
|
||||
oconfig |= OCONF_CC_OUT_8BIT;
|
||||
if (IS_GEN(dev_priv, 4))
|
||||
oconfig |= OCONF_CSC_MODE_BT709;
|
||||
oconfig |= pipe == 0 ?
|
||||
|
|
Loading…
Reference in New Issue
Block a user