intel: Reorder need_fence vs fenced_command to avoid fences on gen4
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Dec 2010 20:34:22 +0000 (20:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 Dec 2010 20:34:22 +0000 (20:34 +0000)
commit537703fd4805e9cd352965fce642670986822d22
tree15095144b870763e11c837390b4bc2a63875f208
parent39e5e982242cd2b611a9dfc1e9b63f857d52da61
intel: Reorder need_fence vs fenced_command to avoid fences on gen4

gen4+ hardware doesn't use fences for GPU access and the older kernel
doesn't expect userspace to make such a mistake. So don't.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=32190
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c