]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Fix maxfifo watermark calc on vlv cursor planes
authorThomas Daniel <thomas.daniel@intel.com>
Fri, 23 Oct 2015 13:55:38 +0000 (14:55 +0100)
committerJani Nikula <jani.nikula@intel.com>
Tue, 27 Oct 2015 13:46:47 +0000 (15:46 +0200)
A typo resulted in the watermarks for cursor planes not being calculated
correctly.  Fixed the typo.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Thomas Daniel <thomas.daniel@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_pm.c

index 9dda3eaebd12d7f547ae10058e855007f041a67d..80175a38a8755c279f407cdc9678fe216463b54b 100644 (file)
@@ -1135,7 +1135,7 @@ static void vlv_compute_wm(struct intel_crtc *crtc)
                case DRM_PLANE_TYPE_CURSOR:
                        for (level = 0; level < wm_state->num_levels; level++)
                                wm_state->sr[level].cursor =
-                                       wm_state->sr[level].cursor;
+                                       wm_state->wm[level].cursor;
                        break;
                case DRM_PLANE_TYPE_PRIMARY:
                        for (level = 0; level < wm_state->num_levels; level++)