From: Kenneth Graunke Date: Mon, 22 Apr 2013 07:53:49 +0000 (-0700) Subject: drm/i915: Add PTE encoding function to the gtt/ppgtt vtables. X-Git-Tag: v3.11-rc1~65^2~131^2~130 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d04befb949744998284d8551ae7cd47059b8a53;p=pandora-kernel.git drm/i915: Add PTE encoding function to the gtt/ppgtt vtables. Sandybridge/Ivybridge, Bay Trail, and Haswell all have slightly different page table entry formats. Rather than polluting one function with generation checks, simply use a function pointer and set up the correct PTE encoding function at startup. v2: Move the gen6_gtt_pte_t typedef to i915_drv.h so that the function pointers and implementations have identical signatures. Also remove inline keyword on gen6_pte_encode. Both suggested by Jani Nikula. Signed-off-by: Kenneth Graunke Reviewed-by: Jani Nikula Tested-by: Daniel Leung [v1] Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed