diff options
| author | Kenneth Graunke <[email protected]> | 2013-04-22 00:53:49 -0700 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2013-04-22 11:20:15 +0200 |
| commit | 2d04befb949744998284d8551ae7cd47059b8a53 (patch) | |
| tree | 162b4b542a3834559daa38b79e053609f9ddbfd7 /tools/perf/scripts/python/bin | |
| parent | 80ad9206c0d863832bc5f6008c4d1868d1df8e70 (diff) | |
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 <[email protected]>
Reviewed-by: Jani Nikula <[email protected]>
Tested-by: Daniel Leung <[email protected]> [v1]
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions