]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Unconditionally call prepare_fb.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 31 Jan 2017 09:21:30 +0000 (10:21 +0100)
committerJani Nikula <jani.nikula@intel.com>
Wed, 1 Feb 2017 09:44:39 +0000 (11:44 +0200)
commit64fc122a7d8de9ad1d8aef2ec0cf0e00b15c4033
tree2c93c8cf27e894d3035e7601095a292f2d2537ec
parentaf3594dc652d27a1be9786fb22f7c0db391f6673
drm/atomic: Unconditionally call prepare_fb.

Atomic drivers may set properties like rotation on the same fb, which
may require a call to prepare_fb even when framebuffer stays identical.

Instead of handling all the special cases in the core, let the driver
decide when prepare_fb and cleanup_fb are noops.

This is a revert of:

commit c43cf414d66cee6e611c8da47fdd8138a6dab208
Author: Keith Packard <keithp@keithp.com>
Date:   Sat Jun 4 01:16:22 2016 -0700

    drm: Don't prepare or cleanup unchanging frame buffers [v3]

The original commit mentions that this prevents waiting in i915 on all
previous rendering during cursor updates, but there are better ways to
fix this.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/6d82f9b6-9d16-91d1-d176-4a37b09afc44@linux.intel.com
(cherry picked from commit 0532be078a207d7dd6ad26ebd0834e258acc4ee7)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1485854491-27389-2-git-send-email-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c