[Intel-gfx] [PATCH 13/15] drm/i915: use gpu fence usage accounting for more accurate fence lru

Daniel Vetter daniel.vetter at ffwll.ch
Thu Mar 11 16:58:58 CET 2010


Now that we don't superflously wait for the gpu when stealing a fence,
only update the fence lru when the gpu actually needs the fence.

Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
---
 drivers/gpu/drm/i915/i915_gem.c |    2 +-
 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 4102af6..93480aa 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -1617,7 +1617,7 @@ i915_gem_process_flushing_list(struct drm_device *dev, uint32_t flush_domains)
 			i915_gem_object_move_to_active(obj);
 
 			/* update the fence lru list */
-			if (obj_priv->fence_reg != I915_FENCE_REG_NONE) {
+			if (obj_priv->fenced_gpu_access) {
 				struct drm_i915_fence_reg *reg =
 					&dev_priv->fence_regs[obj_priv->fence_reg];
 				list_move_tail(&reg->lru_list,
-- 
1.6.6.1




More information about the Intel-gfx mailing list