From: Jakob Bornecrantz Date: Wed, 23 Sep 2009 00:00:46 +0000 (-0700) Subject: i915g: Enable reuse of buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3663bdc35d393194da9fb3b4d5120ea70eb1bbe;p=mesa.git i915g: Enable reuse of buffers --- 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 0fd5cdd9697..46fdc9f92b2 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);