Re: [RFCv2 08/19] drm/i915: Mock a GGTT for self-testing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 09, 2017 at 03:16:19PM +0000, Matthew Auld wrote:
> On 20 December 2016 at 13:08, Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux