summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/intel_display.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@jsg.id.au>2013-02-20 22:37:55 +1100
committerJonathan Gray <jsg@jsg.id.au>2013-02-20 22:37:55 +1100
commita21881aeee49d175169858834d6bde0f40ca8f28 (patch)
tree7a7cd5ec1289f9c3a6ea9b5169f831c7c1e70f11 /sys/dev/pci/drm/intel_display.c
parent4964722977108265bd4924f7a02ca4ae4082fad4 (diff)
adjust for fence changes
Diffstat (limited to 'sys/dev/pci/drm/intel_display.c')
-rw-r--r--sys/dev/pci/drm/intel_display.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pci/drm/intel_display.c b/sys/dev/pci/drm/intel_display.c
index 62b57019367..2afc0ec1769 100644
--- a/sys/dev/pci/drm/intel_display.c
+++ b/sys/dev/pci/drm/intel_display.c
@@ -2461,13 +2461,11 @@ intel_pin_and_fence_fb_obj(struct drm_device *dev,
* framebuffer compression. For simplicity, we always install
* a fence as the cost is not that onerous.
*/
- if (obj->tiling_mode != I915_TILING_NONE) {
- ret = i915_gem_object_get_fence(obj);
- if (ret)
- goto err_unpin;
+ ret = i915_gem_object_get_fence(obj);
+ if (ret)
+ goto err_unpin;
- i915_gem_object_pin_fence(obj);
- }
+ i915_gem_object_pin_fence(obj);
dev_priv->mm.interruptible = true;
return 0;