]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use ORIGIN_CPU for fb invalidation from pwrite
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 16:16:43 +0000 (17:16 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Aug 2016 21:36:24 +0000 (22:36 +0100)
commitd13ec5e08b9a6a07d26cf7a5ff5667ebbee1aa1c
treede6a32a3dee670c6f48ae87aa332c68f55a8930c
parent6263d0ce5125a0b6487b06b52de714d706fdc2e1
drm/i915: Use ORIGIN_CPU for fb invalidation from pwrite

As pwrite does not use the fence for its GTT access, and may even go
through a secondary interface avoiding the main VMA, we cannot treat the
write as automatically invalidated by the hardware and so we require
ORIGIN_CPU frontbufer invalidate/flushes.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20160818161718.27187-4-chris@chris-wilson.co.uk
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c