summaryrefslogtreecommitdiff
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorJakob Bornecrantz <wallbraker@gmail.com>2009-09-22 17:00:46 -0700
committerJakob Bornecrantz <wallbraker@gmail.com>2009-09-27 13:19:48 -0700
commitc3663bdc35d393194da9fb3b4d5120ea70eb1bbe (patch)
tree1163eb601f4b09a28eb622eede8882323ccf2993 /src/gallium/winsys
parentdd586078bef433d0830df0b60c768c617a8ae8cd (diff)
i915g: Enable reuse of buffers
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/drm/intel/gem/intel_drm_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/drm/intel/gem/intel_drm_api.c b/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
index 0fd5cdd969..46fdc9f92b 100644
--- a/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
+++ b/src/gallium/winsys/drm/intel/gem/intel_drm_api.c
@@ -167,6 +167,7 @@ intel_drm_create_screen(struct drm_api *api, int drmFD,
idws->base.destroy = intel_drm_winsys_destroy;
idws->pools.gem = drm_intel_bufmgr_gem_init(idws->fd, idws->max_batch_size);
+ drm_intel_bufmgr_gem_enable_reuse(idws->pools.gem);
idws->softpipe = FALSE;
idws->dump_cmd = debug_get_bool_option("INTEL_DUMP_CMD", FALSE);