]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pass around plane_state instead of fb+rotation
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Jan 2016 16:02:50 +0000 (18:02 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 11 Aug 2016 15:33:32 +0000 (18:33 +0300)
commit32003586592cee8e9651c0ed0d9306688c535568
treecac4bceefd8f847e84e03035f13b548757a5b3f4
parent688bccc6e0857d03a93a455a26c40b5345eab509
drm/i915: Pass around plane_state instead of fb+rotation

intel_compute_tile_offset() and intel_add_fb_offsets() get passed the fb
and the rotation. As both of those come from the plane state we can just
pass that in instead.

For extra consitency pass the plane state to intel_fb_xy_to_linear() as
well even though it only really needs the fb.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Sivakumar Thulasimani <sivakumar.thulasimani@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1470821001-25272-5-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_sprite.c