]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: vfuncs for ppgtt
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 24 Jan 2013 22:44:56 +0000 (14:44 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 31 Jan 2013 10:50:05 +0000 (11:50 +0100)
commit04cea54542cdc1b796110b5f83d812fd0d4f3cc2
tree286572413c631a0bd011a94027ac9d4a2cc6e7e7
parent4d57b35f7aa29d3b5a2345084efb7b0c4b7058aa
drm/i915: vfuncs for ppgtt

Like for the global gtt we want a notch more flexibility here. Only
big change (besides a few tiny function parameter adjustments) was to
move gen6_ppgtt_insert_entries up (and remove _sg_ from its name, we
only have one kind of insert_entries since the last gtt cleanup).

We could also extract the platform ppgtt setup/teardown code a bit
better, but I don't care that much.

With this we have the hw details of pte writing nicely hidden away
behind a bit of abstraction. Which should pave the way for
different/multiple ppgtts (e.g. what we need for real ppgtt support).

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem_gtt.c