[Intel-gfx] [PATCH v3 1/3] drm/i915: Use i915_vm_to_ppgtt instead of manual container_of

Chris Wilson chris at chris-wilson.co.uk
Fri Apr 1 07:57:43 UTC 2016


On Fri, Apr 01, 2016 at 10:46:41AM +0300, Joonas Lahtinen wrote:
> Looks much better without container_of everywhere.
> 
> v2:
> - In i915_gem_restore_gtt_mappings too (Chris)
> 
> v3:
> - Do not cause WARN by calling on non PPGTT object (Chris)
> 
> Cc: Daniel Vetter <daniel.vetter at ffwll.ch>
> Cc: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Joonas Lahtinen <joonas.lahtinen at linux.intel.com>

Minor disgruntle at seeing an extra line I have to change (vm->is_ggtt!),
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list