aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-11-10 08:59:09 -0500
committerChris Wilson <chris@chris-wilson.co.uk>2010-11-10 08:59:09 -0500
commit33d2323711059d14fd675fa7def317e560fa787e (patch)
treefd79de0488b6a7197def41efa9b3e55f2af63f30
parent56e2ea346ab4c2ea159ecdec85fffc24f50c2903 (diff)
drm/i915: Unconditionally get the fence reg when pinning scanout
We use i915_gem_object_get_fence_reg() to do LRU tracking of the fence registers, so stop trying to be too clever when pinning the fb->obj. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--drivers/gpu/drm/i915/intel_display.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index c41dae5ade32..63770c963077 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1474,8 +1474,7 @@ intel_pin_and_fence_fb_obj(struct drm_device *dev,
1474 * framebuffer compression. For simplicity, we always install 1474 * framebuffer compression. For simplicity, we always install
1475 * a fence as the cost is not that onerous. 1475 * a fence as the cost is not that onerous.
1476 */ 1476 */
1477 if (obj_priv->fence_reg == I915_FENCE_REG_NONE && 1477 if (obj_priv->tiling_mode != I915_TILING_NONE) {
1478 obj_priv->tiling_mode != I915_TILING_NONE) {
1479 ret = i915_gem_object_get_fence_reg(obj, false); 1478 ret = i915_gem_object_get_fence_reg(obj, false);
1480 if (ret) 1479 if (ret)
1481 goto err_unpin; 1480 goto err_unpin;