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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux