[Intel-gfx] [RFCv2 08/19] drm/i915: Mock a GGTT for self-testing
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
Better add a comment because I had forgotten why as well.
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx