[Intel-gfx] [PATCH v2 04/22] drm/i915/region: support volatile objects

Chris Wilson chris at chris-wilson.co.uk
Thu Oct 3 19:40:26 UTC 2019


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


More information about the Intel-gfx mailing list