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

Reply via email to