]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Put update_state_fb() next to the fb update
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 5 Feb 2015 17:22:15 +0000 (17:22 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 13 Feb 2015 22:28:03 +0000 (23:28 +0100)
commit4e349df57dfd5a4b20e222c91d2db4d43de2e2d4
treee2de8aea2fd04452f4c820cd0650f395979ce09b
parented29741e0f12eda7f00d362cf99ed5d40bd429cc
drm/i915: Put update_state_fb() next to the fb update

update_state_fb() at the end of intel_find_plane_obj() is misleading as
it leads us to believe the update is done for all code path.

A successful call to intel_alloc_plane_obj() will return and
update_state_fb() is then only needed when we share a fb from another
CRTC. Put the update() function there then.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c