drm/i915: Allow calling intel_adjust_tile_offset() multiple times
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 8 Feb 2016 16:28:00 +0000 (18:28 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Aug 2016 15:34:29 +0000 (18:34 +0300)
commitb9b2403845f11cae20af5f6b5fd5cf7c6c9346ab
tree0a1cc9be57692a5815ee1353e04f0b5d3c0c6c2a
parent60d5f2a45b5f714ad9a421d2f22c15e7beaef979
drm/i915: Allow calling intel_adjust_tile_offset() multiple times

Minimize the resulting X coordinate after intel_adjust_tile_offset() is
done with it's offset adjustment. This allows calling
intel_adjust_tile_offset() multiple times in case we need to adjust
the offset several times.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470821001-25272-9-git-send-email-ville.syrjala@linux.intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c