summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-25 19:47:31 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-03-27 13:20:01 +0200
commit8489731c9bd22c27ab17a2190cd7444604abf95f (patch)
tree3d1a3ea9b7b0e47c5a4ba73a5457ee4439344786 /drivers/gpu/drm/i915/i915_drv.h
parent6d5cd9cb1e32e4f4e4468704430b26bcb0bfb129 (diff)
downloadop-kernel-dev-8489731c9bd22c27ab17a2190cd7444604abf95f.zip
op-kernel-dev-8489731c9bd22c27ab17a2190cd7444604abf95f.tar.gz
drm/i915: move clflushing into shmem_pread
This is obviously gonna slow down pread. But for a half-way realistic micro-benchmark, it doesn't matter: Non-broken userspace reads back data from the gpu once before the gpu again dirties it. So all this ranged clflush tracking is just a waste of time. No pread performance change (neglecting the dumb benchmark of constantly reading the same data) measured. As an added bonus, this avoids clflush on read on coherent objects. Which means that partial preads on snb are now roughly 4x as fast. This will be usefull for e.g. the libva encoder - when I finally get around to fix that up. v2: Properly sync with the gpu on LLC machines. 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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud