[Intel-gfx] [PATCH] drm/i915: Replace obj->pin_global with obj->frontbuffer

Chris Wilson chris at chris-wilson.co.uk
Fri Aug 23 16:38:49 UTC 2019


Quoting Chris Wilson (2019-08-23 17:20:41)
> @@ -220,11 +220,18 @@ static void frontbuffer_release(struct kref *ref)
>  {
>         struct intel_frontbuffer *front =
>                 container_of(ref, typeof(*front), ref);
> +       struct drm_i915_gem_object *obj = front->obj;
> +       struct i915_vma *vma;
>  
> -       front->obj->frontbuffer = NULL;
> -       spin_unlock(&to_i915(front->obj->base.dev)->fb_tracking.lock);
> +       spin_lock(&obj->vma.lock);
> +       for_each_ggtt_vma(vma, obj)
> +               vma->display_alignment = I915_GTT_PAGE_SIZE;

Should be I915_GTT_MIN_ALIGNMENT instead.
-Chris


More information about the Intel-gfx mailing list