diff options
author | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-06-17 17:46:45 +0200 |
---|---|---|
committer | Jakob Bornecrantz <jakob@tungstengraphics.com> | 2008-06-17 17:46:45 +0200 |
commit | 5805a9e32881831f320bcd1a95fbfacf17aef5d5 (patch) | |
tree | f2f1bfc0037cf20ac002abcab3025d1ad78fd80b /src/gallium/winsys | |
parent | d9d1e39d95fef4a8da15147956ff0c3e0a188b5b (diff) |
i915: Made region pool a slabpool
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r-- | src/gallium/winsys/common/intel_drm/intel_be_device.c | 13 |
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 | |