]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: Configure SKL+ scaler initial phase correctly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 May 2018 18:56:13 +0000 (21:56 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Jun 2018 15:40:19 +0000 (18:40 +0300)
commit0a59952b24e24e153b8d1cbd781c8d264257b1b3
treeb5bc1c4fcec43611ff681981e465bd9873c458cc
parent012d79e6a33f095c293fe2a02b2b3b26d8c6402c
drm/i915: Configure SKL+ scaler initial phase correctly

Set up the SKL+ scaler initial phase registers correctly. Otherwise
we start fetching the data from the center of the first pixel instead
of the top-left corner, which obviously then leads to right/bottom edges
replicating data excessively as the data runs out half a pixel too soon.

Cc: Vidya Srinivas <vidya.srinivas@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180521185613.5097-2-ville.syrjala@linux.intel.com
Reviewed-By: Vidya Srinivas <vidya.srinivas@intel.com>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c