From: Eric Anholt Date: Tue, 26 Jan 2010 17:43:10 +0000 (-0800) Subject: drm/i915: Don't reserve compatibility fence regs in KMS mode. X-Git-Tag: MMI-PSA29.97-13-9~23984^2~101^2~24^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b397c836eff58cd9a43f7bd8b853a51b3ecc3420;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/i915: Don't reserve compatibility fence regs in KMS mode. 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 --- diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 129ac36ddc58..4a141993a37a 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;