]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: drop gtt slowpath
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Mar 2012 17:47:35 +0000 (19:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Mar 2012 11:27:21 +0000 (13:27 +0200)
commite2ee7ffbcf31db5decfb465fe752ce6e0784b7f5
tree8096a1c7243b7464a761efd74f5cb55a6db7326d
parentdefbdb22a5e6e9c4ea23708d42d104fcb468c532
drm/i915: drop gtt slowpath

With the proper prefault, it's extremely unlikely that we fall back
to the gtt slowpath.

So just kill it and use the shmem_pwrite path as fallback.

To further clean up the code, move the preparatory gem calls into the
respective pwrite functions. This way the gtt_fast->shmem fallback
is much more obvious.

Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c