OSDN Git Service

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)
commitc0550305fcbd82c0b0d094e385551d9c63fc8852
tree28576f6385ffa89d07dcbcc2335e4b191c44cb77
parentd54e5f76d8fe025fa557857d826515116d124a90
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