]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: move more pte encoding to pte encode
authorBen Widawsky <ben@bwidawsk.net>
Fri, 19 Oct 2012 16:33:22 +0000 (09:33 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 11 Nov 2012 22:51:11 +0000 (23:51 +0100)
commite7210c3c4f0d05e318b854bbd545fe335930c5cc
tree02a6d2a1deecf2c86e7441f9f777ae605620d83d
parent54d125274fc1bb6454bb73f98471823ed4818991
drm/i915: move more pte encoding to pte encode

In order to handle differences in pte encoding between architectures it
is desirable to have one helper function, pte_encode, do it all for us.
As such, this commit moves the code around so we're in good shape to do
that.

Luckily the ppgtt pte and the ggtt pte look very similar.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c