]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Avoid moving from CPU domain during pwrite
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 27 May 2010 13:21:01 +0000 (14:21 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 28 May 2010 18:02:00 +0000 (11:02 -0700)
commit79776fbd8f77567ad208e6e05dfb1951bdb39d26
tree50aa5824d31631d4b4ec21d5fd23a581d715c092
parent279e44f640144219f40ffe58b486c3fe3a1c44e5
drm/i915: Avoid moving from CPU domain during pwrite

We can avoid an early clflush when pwriting if we use the current CPU
write domain rather than moving the object to the GTT domain for the
purposes of the pwrite. This has the advantage of not flushing the
presumably hot data that we want to upload into the bo, and of ascribing
the clflush to the execution when profiling.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c