]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unconditionally do fb tracking invalidate in set_domain
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 26 Jun 2015 17:35:16 +0000 (19:35 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Jun 2015 08:46:45 +0000 (10:46 +0200)
commit1f41b87cdcd2c43824cc1ffed0066221737f0180
tree48061fb6fdcd3aa1f5625b8246368b5677847859
parente6e6c8dcc0a160e78e659677a395de1a9c14f16b
drm/i915: Unconditionally do fb tracking invalidate in set_domain

We can't elide the fb tracking invalidate if the buffer is already in
the right domain since that would lead to missed screen updates. I'm
pretty sure I've written this already before but must have gotten lost
unfortunately :(

v2: Chris observed that all internal set_domain users already
correctly do the fb invalidate on their own, hence we can move this
just into the set_domain ioctl instead.

v3: I screwed up setting the invalidate ORIGIN_* correctly (Chris).

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reported-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Tested-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c