On Thu, 26 Apr 2012 15:51:44 -0300
Eugeni Dodonov <[email protected]> wrote:

> v2: check for num_pipe instead, as suggested by Jesse
> 
> CC: Jesse Barnes <[email protected]>
> Signed-off-by: Eugeni Dodonov <[email protected]>
> ---
>  drivers/gpu/drm/i915/intel_pm.c |    3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
> index 0552058..4e0af68 100644
> --- a/drivers/gpu/drm/i915/intel_pm.c
> +++ b/drivers/gpu/drm/i915/intel_pm.c
> @@ -1694,8 +1694,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 == 2) &&
>           g4x_compute_wm0(dev, 2,
>                           &sandybridge_display_wm_info, latency,
>                           &sandybridge_cursor_wm_info, latency,

As noted on IRC, a cleanup (one of many for the WM code) would be to
use a loop for calculating the per-pipe watermarks.

But that can be done on top.

Reviewed-by: Jesse Barnes <[email protected]>

-- 
Jesse Barnes, Intel Open Source Technology Center
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to