]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Always flush tiling changes before accessing through the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Apr 2012 08:55:51 +0000 (09:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Apr 2012 08:48:38 +0000 (10:48 +0200)
commit7b09638f45379fd1f8cbcb0a95ea2b11f0c8b850
tree408518ff3565fb68cacc9ca137d2dc7bd28f577b
parent3bf3f452362841404fe6d4589883f9471842ef8b
drm/i915: Always flush tiling changes before accessing through the GTT

As we defer updating the fence register from set-tiling to the point of
use, we need to declare every access through the GTT as either fenced or
unfenced.

This patches fixes an old bug in the execbuffer relocation processing
which could conceivably be hit by a pathological userspace.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c