[Intel-gfx] [PATCH] drm/i915: initialize pending_flip count
Jesse Barnes
jbarnes at virtuousgeek.org
Thu Jan 14 22:17:32 CET 2010
Out of paranoia.
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
drivers/gpu/drm/i915/i915_gem.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 31eb5b5..8526850 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4336,6 +4336,7 @@ int i915_gem_init_object(struct drm_gem_object *obj)
INIT_LIST_HEAD(&obj_priv->list);
INIT_LIST_HEAD(&obj_priv->fence_list);
obj_priv->madv = I915_MADV_WILLNEED;
+ atomic_set(&obj_priv->pending_flip, 0);
trace_i915_gem_object_create(obj);
--
1.6.1.3
--
Jesse Barnes, Intel Open Source Technology Center
More information about the Intel-gfx
mailing list