drm/i915: Add ioctl to set 'purgeability' of objects
commit3ef94daae7530b4ebcd2e5f48f1028cd2d2470ba
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 14 Sep 2009 15:50:29 +0000 (14 16:50 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 17 Sep 2009 21:43:31 +0000 (17 14:43 -0700)
tree130f7e46f4d34b3016775c9e1980d971c475dc55
parent31169714fc928aed4e945b959dca2bedd259b9c9
drm/i915: Add ioctl to set 'purgeability' of objects

Similar to the madvise() concept, the application may wish to mark some
data as volatile. That is in the event of memory pressure the kernel is
free to discard such buffers safe in the knowledge that the application
can recreate them on demand, and is simply using these as a cache.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
include/drm/i915_drm.h