diff options
Diffstat (limited to 'src/gallium/winsys/r600/drm/radeon.c')
-rw-r--r-- | src/gallium/winsys/r600/drm/radeon.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/winsys/r600/drm/radeon.c b/src/gallium/winsys/r600/drm/radeon.c index 8a5acf62562..f39d020559c 100644 --- a/src/gallium/winsys/r600/drm/radeon.c +++ b/src/gallium/winsys/r600/drm/radeon.c @@ -133,6 +133,9 @@ struct radeon *radeon_new(int fd, unsigned device) radeon->kman = radeon_bo_pbmgr_create(radeon); if (!radeon->kman) return NULL; + radeon->cman = pb_cache_manager_create(radeon->kman, 100000); + if (!radeon->cman) + return NULL; return radeon; } @@ -153,6 +156,7 @@ struct radeon *radeon_decref(struct radeon *radeon) } radeon->mman->destroy(radeon->mman); + radeon->cman->destroy(radeon->cman); radeon->kman->destroy(radeon->kman); drmClose(radeon->fd); free(radeon); |