[Intel-gfx] [PATCH] drm/i915: initialize pending_flip count
Chris Wilson
chris at chris-wilson.co.uk
Thu Jan 14 22:33:41 CET 2010
On Thu, 14 Jan 2010 13:17:32 -0800, Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> 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);
Don't trust kzalloc() then, hmm? Justify the inconsistency!
-ickle
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list