summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-03-02 16:04:14 -0800
committerEric Anholt <eric@anholt.net>2010-03-02 16:04:14 -0800
commit766fa7909f3a1af27e60f3529a6a3318cc406f67 (patch)
tree67195031e0a76d74df6834da4ccffae8ba1acdde
parent292a5d73a244cec8f4d1042c6fec6618333c1e0e (diff)
intel: Don't enable execbuf2 fenced relocs unless we have execbuf2.
-rw-r--r--intel/intel_bufmgr_gem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/intel/intel_bufmgr_gem.c b/intel/intel_bufmgr_gem.c
index 9cf4095b..d40e95b6 100644
--- a/intel/intel_bufmgr_gem.c
+++ b/intel/intel_bufmgr_gem.c
@@ -1710,9 +1710,10 @@ drm_intel_bufmgr_gem_enable_reuse(drm_intel_bufmgr *bufmgr)
void
drm_intel_bufmgr_gem_enable_fenced_relocs(drm_intel_bufmgr *bufmgr)
{
- drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *)bufmgr;
+ drm_intel_bufmgr_gem *bufmgr_gem = (drm_intel_bufmgr_gem *)bufmgr;
- bufmgr_gem->fenced_relocs = 1;
+ if (bufmgr_gem->bufmgr.bo_exec == drm_intel_gem_bo_exec2)
+ bufmgr_gem->fenced_relocs = 1;
}
/**