]> git.baikalelectronics.ru Git - kernel.git/commit
drm: i915: Wait for fences on new fb, not old
authorDaniel Stone <daniels@collabora.com>
Fri, 21 Oct 2016 14:44:54 +0000 (15:44 +0100)
committerJani Nikula <jani.nikula@intel.com>
Fri, 28 Oct 2016 12:23:35 +0000 (15:23 +0300)
commit1241758b7a70a756c1a9abe96e32a70da70fb095
treee82804bf0193b0b228fef2cea377336d7ce767c6
parent5cdad36fbca87c904e942d286ca1544f53b7bf34
drm: i915: Wait for fences on new fb, not old

The previous code would wait for fences on the framebuffer from the old
plane state to complete, rather than the new, so you would see tearing
everywhere. Fix this to wait on the new state before we make it active.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Fixes: 7eff826fc793 ("drm/i915: nonblocking commit")
Cc: stable@vger.kernel.org
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161021144454.6288-1-daniels@collabora.com
(cherry picked from commit 2d2c5ad83f772d7d7b0bb8348ecea42e88f89ab0)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_display.c