[Intel-gfx] [PATCH] drm/i915: Don't reserve compatibility fence regs in KMS mode.
Eric Anholt
eric at anholt.net
Tue Jan 26 18:46:23 CET 2010
The fence start is for compatibility with UMS X Servers before fence
management. KMS X Servers only started doing tiling after fence
management appeared.
Signed-off-by: Eric Anholt <eric at anholt.net>
---
drivers/gpu/drm/i915/i915_gem.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
I haven't tested this beyond compiling, but it sounds like Daniel Vetter had
a workload that was interested in this.
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index eb6f3ef..ddea92c 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4794,7 +4794,8 @@ i915_gem_load(struct drm_device *dev)
spin_unlock(&shrink_list_lock);
/* Old X drivers will take 0-2 for front, back, depth buffers */
- dev_priv->fence_reg_start = 3;
+ if (!drm_core_check_feature(dev, DRIVER_MODESET))
+ dev_priv->fence_reg_start = 3;
if (IS_I965G(dev) || IS_I945G(dev) || IS_I945GM(dev) || IS_G33(dev))
dev_priv->num_fence_regs = 16;
--
1.6.5.7
More information about the Intel-gfx
mailing list