]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Pass the correct plane index to _intel_compute_tile_offset()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Mar 2017 19:42:09 +0000 (21:42 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 8 Mar 2017 14:44:29 +0000 (16:44 +0200)
intel_fill_fb_info() should pass the correct plane index to
_intel_compute_tile_offset() once we start to care about the AUX
surface.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170307194210.13400-5-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c

index 2f60b929acf56f9cd5db0b3ad79a13f16ee03b98..23d380c756aec712de66d16e87d516341a8ef29f 100644 (file)
@@ -2467,7 +2467,7 @@ intel_fill_fb_info(struct drm_i915_private *dev_priv,
                intel_fb->normal[i].y = y;
 
                offset = _intel_compute_tile_offset(dev_priv, &x, &y,
-                                                   fb, 0, fb->pitches[i],
+                                                   fb, i, fb->pitches[i],
                                                    DRM_ROTATE_0, tile_size);
                offset /= tile_size;