intel: Mark cached bo as purgeable
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Oct 2009 03:31:34 +0000 (04:31 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 2 Oct 2009 19:54:13 +0000 (12:54 -0700)
commit0fb215ae3199b5be0c9a9474e5941f8d8998c11a
tree72adbdad266bc0cec958f460100c898fd885a885
parent12d9b7cc8550c1999e5c39a38b1b14e654f49065
intel: Mark cached bo as purgeable

Set the DONTNEED flag on cached buffers so that the kernel is free to
discard those when under memory pressure.

[anholt: This takes firefox-talos-gfx time from ~62 seconds to ~65 seconds
on my GM965, but it seems like a hit worth taking for the improved
functionality from saving memory]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Eric Anholt <eric@anholt.net>
libdrm/intel/intel_bufmgr_gem.c
shared-core/i915_drm.h