Re: [Intel-gfx] [PATCH] drm/i915/userptr: Convert to drm_i915_private

2016-05-23 Thread Joonas Lahtinen
On to, 2016-05-19 at 16:17 +0100, Chris Wilson wrote: > -int > -i915_gem_init_userptr(struct drm_device *dev) > +void i915_gem_init_userptr(struct drm_i915_private *dev_priv) >  { > - struct drm_i915_private *dev_priv = to_i915(dev); >   mutex_init(&dev_priv->mm_lock); >   hash_init(dev

Re: [Intel-gfx] [PATCH] drm/i915/userptr: Convert to drm_i915_private

2016-05-19 Thread Tvrtko Ursulin
On 19/05/16 16:17, Chris Wilson wrote: userptr directly only uses drm_device in a single interface where it meant to use drm_i915_private (everywhere else we have to derive it from the drm_i915_gem_object and so require going from drm_device). Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc

[Intel-gfx] [PATCH] drm/i915/userptr: Convert to drm_i915_private

2016-05-19 Thread Chris Wilson
userptr directly only uses drm_device in a single interface where it meant to use drm_i915_private (everywhere else we have to derive it from the drm_i915_gem_object and so require going from drm_device). Signed-off-by: Chris Wilson Cc: Tvrtko Ursulin Cc: Joonas Lahtinen --- drivers/gpu/drm/i9