[Intel-gfx] [PATCH] drm/i915: drop duplicate ggtt vma list add in setup_global_gtt

Jesse Barnes jbarnes at virtuousgeek.org
Tue Nov 12 23:53:08 CET 2013


Preallocated, stolen objects will already be added to this list when we
first create them.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index f69bdc7..efb5dab 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -1124,7 +1124,6 @@ void i915_gem_setup_global_gtt(struct drm_device *dev,
 		if (ret)
 			DRM_DEBUG_KMS("Reservation failed\n");
 		obj->has_global_gtt_mapping = 1;
-		list_add(&vma->vma_link, &obj->vma_list);
 	}
 
 	dev_priv->gtt.base.start = start;
-- 
1.8.4.2




More information about the Intel-gfx mailing list