Re: [PATCH v2 04/22] drm/i915/region: support volatile objects

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

 



Quoting Matthew Auld (2019-10-03 20:24:26)
>  static const struct drm_i915_gem_object_ops fake_ops = {
> @@ -131,6 +128,8 @@ fake_dma_object(struct drm_i915_private *i915, u64 size)
>         drm_gem_private_object_init(&i915->drm, &obj->base, size);
>         i915_gem_object_init(obj, &fake_ops);
>  
> +       obj->flags = I915_BO_ALLOC_VOLATILE;

	obj->flags |= I915_BO_ALLOC_VOLATILE

even during early init, then we will not be caught out if we add an
earlier flag.

	i915_gem_object_set_volatile()
	i915_gem_object_is_volatile()
helpers?
-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