[Intel-gfx] [RFCv2 08/19] drm/i915: Mock a GGTT for self-testing
Chris Wilson
chris at chris-wilson.co.uk
Tue Jan 10 12:33:42 UTC 2017
On Mon, Jan 09, 2017 at 03:16:19PM +0000, Matthew Auld wrote:
> On 20 December 2016 at 13:08, Chris Wilson <chris at 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
More information about the Intel-gfx
mailing list