summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-03-05 14:14:54 -0800
committerEric Anholt <eric@anholt.net>2008-03-05 16:29:14 -0800
commitfe91c05b5494b889c8adda77ff562712116d2e59 (patch)
treeddd212ab1460db866eec1bdc4eae2d9cb38c1c57 /src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h
parentfc21e9cdd09db7a6759b82cb69cc42015d8a76de (diff)
[intel] Add a driconf option to cache freed buffer objects for reuse.
This is defaulted off as it has potentially large memory costs for a modest performance gain. Ideally we will improve DRM performance to the point where this optimization is not worth the memory cost in any case, or find some middle ground in caching only limited numbers of certain buffers. For now, this provides a modest 4% improvement in openarena on GM965 and 10% in openarena on GM945.
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h')
-rw-r--r--src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h
index 0738839cef..d267a168cd 100644
--- a/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h
+++ b/src/mesa/drivers/dri/intel/intel_bufmgr_ttm.h
@@ -14,4 +14,7 @@ dri_fence *intel_ttm_fence_create_from_arg(dri_bufmgr *bufmgr, const char *name,
dri_bufmgr *intel_bufmgr_ttm_init(int fd, unsigned int fence_type,
unsigned int fence_type_flush, int batch_size);
+void
+intel_ttm_enable_bo_reuse(dri_bufmgr *bufmgr);
+
#endif