From 766fa7909f3a1af27e60f3529a6a3318cc406f67 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 2 Mar 2010 16:04:14 -0800 Subject: [PATCH] intel: Don't enable execbuf2 fenced relocs unless we have execbuf2. --- intel/intel_bufmgr_gem.c | 5 +++-- 1 file 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; } /**