[Intel-gfx] [PATCH] Remove obj_priv->gtt_bound

Ben Gamari bgamari at gmail.com
Thu Jan 15 04:11:48 CET 2009


gtt_bound isn't used anywhere in the driver. Remove it on keithp's
suggestion. Use obj_priv->gtt_space != NULL to test whether an object
is mapped into the GTT.
---
 drivers/gpu/drm/i915/i915_drv.h |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 75ffa17..6fe46b4 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -411,9 +411,6 @@ struct drm_i915_gem_object {
 	 */
 	int fence_reg;
 
-	/** Boolean whether this object has a valid gtt offset. */
-	int gtt_bound;
-
 	/** How many users have pinned this object in GTT space */
 	int pin_count;
 
-- 
1.6.0.6




More information about the Intel-gfx mailing list