aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni.dodonov@intel.com>2012-05-09 15:37:11 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-05-19 22:39:44 +0200
commit461bc9b587389586edf9315b337fb136f33594ad (patch)
tree4d29d88481c0c10af0bcfb34c433b31298ca1b03
parenta416edefbbaf942b588595ad6fa63ac700f5d73c (diff)
downloadkernel_goldelico_gta04-461bc9b587389586edf9315b337fb136f33594ad.zip
kernel_goldelico_gta04-461bc9b587389586edf9315b337fb136f33594ad.tar.gz
kernel_goldelico_gta04-461bc9b587389586edf9315b337fb136f33594ad.tar.bz2
drm/i915: calculate watermarks for devices that have 3 pipes
This adds proper support for calculating those watermarks, checking for number of available pipes instead of specific GPU variants when deciding if watermarks for 3rd pipe are necessary. Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--drivers/gpu/drm/i915/intel_pm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 4389234..21587f8 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -1803,8 +1803,7 @@ static void sandybridge_update_wm(struct drm_device *dev)
enabled |= 2;
}
- /* IVB has 3 pipes */
- if (IS_IVYBRIDGE(dev) &&
+ if ((dev_priv->num_pipe == 3) &&
g4x_compute_wm0(dev, 2,
&sandybridge_display_wm_info, latency,
&sandybridge_cursor_wm_info, latency,