]> 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)
commit560bd85515e1e014c4f37bbda484e12b569406d2
tree28576f6385ffa89d07dcbcc2335e4b191c44cb77
parente2d8e0d723f8272d9fcf534e06dbf440a38b3bd3
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