]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Pass in new and old plane state to prepare_fb and cleanup_fb
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 3 Mar 2015 14:22:31 +0000 (14:22 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 4 Mar 2015 23:49:02 +0000 (09:49 +1000)
commit7641c87728a92ecae1447beb78482a313b810a2a
tree0b12433e23cbf549e0698269535a166f8f6bbf2f
parentac21942f446ce05050fa8c7cda2fbd9fb2959208
drm: Pass in new and old plane state to prepare_fb and cleanup_fb

Use cases like rotation require these hooks to have some context so they
know how to prepare and cleanup the frame buffer correctly.

For i915 specifically, object backing pages need to be mapped differently
for different rotation modes and the driver needs to know which mapping to
instantiate and which to tear down when transitioning between them.

v2: Made passed in states const. (Daniel Vetter)

[airlied: add mdp5 and atmel fixups]
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_plane_helper.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/msm/mdp/mdp4/mdp4_plane.c
drivers/gpu/drm/msm/mdp/mdp5/mdp5_plane.c
drivers/gpu/drm/tegra/dc.c
include/drm/drm_plane_helper.h