]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: fix regression due to f494684d0aa6b7190
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 27 Nov 2010 21:30:41 +0000 (22:30 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 28 Nov 2010 09:05:12 +0000 (09:05 +0000)
commit78c311aaa0afa710f443b5830e7f7c84171d7bf3
treedc12def0252ae2bbd044a2666429fee9955cec37
parenta0313765660e49569320fdda46a3308df6008414
drm/i915: fix regression due to f494684d0aa6b7190

We don't track gpu flush request in any special way. So even with
obj->write_domain == 0, a gpu flush might be outstanding but no
yet executed. Even worse, the latest request might use the object
only for reading. So and unconditional call to object_wait_rendering
is needed for !pipelined.

Hence revert that patch fully and untangle the flushing from the
synchronization again.

Reported-by: Keith Packard <keithp@keithp.com>
Tested-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c