i915g: Enable reuse of buffers
authorJakob Bornecrantz <wallbraker@gmail.com>
Wed, 23 Sep 2009 00:00:46 +0000 (17:00 -0700)
committerJakob Bornecrantz <wallbraker@gmail.com>
Sun, 27 Sep 2009 20:19:48 +0000 (13:19 -0700)
src/gallium/winsys/drm/intel/gem/intel_drm_api.c

index 0fd5cdd96972870fcd28c3b990696060bbf015a5..46fdc9f92b276e624db7251c1861494dd4105ae9 100644 (file)
@@ -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);