]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/i915: extract copy helpers from shmem_pread|pwrite
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Mar 2012 17:47:40 +0000 (19:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Mar 2012 11:30:33 +0000 (13:30 +0200)
commitd174bd6472d79fb5603dc8bd35e5184d83194ea8
tree218fdb2a65ba8b22ebdc7c53ea7b51b11bf55a52
parent117babcdd51ed8a9bb8d4921b292918acb6e0d70
drm/i915: extract copy helpers from shmem_pread|pwrite

While moving around things, this two functions slowly grew out of any
sane bounds. So extract a few lines that do the copying and
clflushing. Also add a few comments to explain what's going on.

v2: Again do s/needs_clflush/needs_clflush_after/ in the write paths
as suggested by Chris Wilson.

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