]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Force background color to black for gen9+ (v2)
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 30 Jan 2019 18:51:20 +0000 (10:51 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 31 Jan 2019 00:25:15 +0000 (16:25 -0800)
commit4d543efbb4dc480e0e3109251ab83cecec7d328f
tree28576f6385ffa89d07dcbcc2335e4b191c44cb77
parentb669fb1654fd77b6a2988a96f54748ebbba18ba7
drm/i915: Force background color to black for gen9+ (v2)

We don't yet allow userspace to control the CRTC background color, but
we should manually program the color to black to ensure the BIOS didn't
leave us with some other color.  We should also set the pipe gamma and
pipe CSC bits so that the background color goes through the same color
management transformations that a plane with black pixels would.

v2: Rename register to SKL_BOTTOM_COLOR to more closely follow
    bspec naming.  (Ville)

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190130185122.10322-2-matthew.d.roper@intel.com
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c