On Mon, Jan 09, 2017 at 03:16:19PM +0000, Matthew Auld wrote:
> On 20 December 2016 at 13:08, Chris Wilson <ch...@chris-wilson.co.uk> wrote:
> > @@ -90,19 +91,40 @@ struct drm_i915_private *mock_gem_device(void)
> >         i915->drm.pdev = pdev;
> >         i915->drm.dev_private = i915;
> >
> > +       drm_mode_config_init(&i915->drm);
> > +
> Why do we need this for mocking the ggtt ?

Because evicting from the GTT asks the question
intel_has_pending_fb_unpin()

Better add a comment because I had forgotten why as well.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to