summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-09-28 16:48:38 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-09-28 16:48:38 +0200
commite0e41598b433c0216814d54c62e7c1834f464d9b (patch)
treea4069b104045797da2dc48c62e1acba0132ba98d /drivers/gpu/drm/i915/i915_gem.c
parentMAINTAINERS: Add contact details for drm/i915 (diff)
parentdrm/i915: fix GMCH power reporting (diff)
downloadlinux-e0e41598b433c0216814d54c62e7c1834f464d9b.tar.xz
linux-e0e41598b433c0216814d54c62e7c1834f464d9b.zip
Merge branch 'drm-intel-fixes' into drm-intel-next
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 63b38608c800..81513fa5d303 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -2533,7 +2533,7 @@ i915_gem_clear_fence_reg(struct drm_gem_object *obj)
I915_WRITE64(FENCE_REG_965_0 + (obj_priv->fence_reg * 8), 0);
break;
case 3:
- if (obj_priv->fence_reg > 8)
+ if (obj_priv->fence_reg >= 8)
fence_reg = FENCE_REG_945_8 + (obj_priv->fence_reg - 8) * 4;
else
case 2: