drm/i915: don't use gtt_pwrite on LLC cached objects
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 25 Mar 2012 17:47:33 +0000 (19:47 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 27 Mar 2012 11:25:45 +0000 (13:25 +0200)
commit3ae5378330f581466b05bcea2dd3bc8731a598cb
treec94b5df2503a3172a6377f5d552a480bca115dcf
parenta0356fc373517bc19713c9ff3aeedccbcc2ef7a4
drm/i915: don't use gtt_pwrite on LLC cached objects

~120 µs instead fo ~210 µs to write 1mb on my snb. I like this.

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