summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-17 17:46:45 +0200
committerJakob Bornecrantz <jakob@tungstengraphics.com>2008-06-17 17:46:45 +0200
commit5805a9e32881831f320bcd1a95fbfacf17aef5d5 (patch)
treef2f1bfc0037cf20ac002abcab3025d1ad78fd80b
parentd9d1e39d95fef4a8da15147956ff0c3e0a188b5b (diff)
i915: Made region pool a slabpool
-rw-r--r--src/gallium/winsys/common/intel_drm/intel_be_device.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gallium/winsys/common/intel_drm/intel_be_device.c b/src/gallium/winsys/common/intel_drm/intel_be_device.c
index 0fc1894eaa..3eed0fe410 100644
--- a/src/gallium/winsys/common/intel_drm/intel_be_device.c
+++ b/src/gallium/winsys/common/intel_drm/intel_be_device.c
@@ -220,7 +220,18 @@ intel_be_init_device(struct intel_be_device *dev, int fd)
dev->mallocPool = driMallocPoolInit();
dev->staticPool = driDRMPoolInit(dev->fd);
- dev->regionPool = driDRMPoolInit(dev->fd);
+ /* Sizes: 64 128 256 512 1024 2048 4096 8192 16384 32768 */
+ dev->regionPool = driSlabPoolInit(dev->fd,
+ DRM_BO_FLAG_READ |
+ DRM_BO_FLAG_WRITE |
+ DRM_BO_FLAG_MEM_TT,
+ DRM_BO_FLAG_READ |
+ DRM_BO_FLAG_WRITE |
+ DRM_BO_FLAG_MEM_TT,
+ 64,
+ 10, 120, 4096 * 64, 0,
+ dev->fMan);
+
dev->vertexPool = driSlabPoolInit(dev->fd,
DRM_BO_FLAG_READ |
DRM_BO_FLAG_WRITE |