diff options
author | Dave Airlie <[email protected]> | 2010-09-17 13:18:42 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-09-17 15:29:31 +1000 |
commit | da96313afe3cff66d8ae0c9675a6299b3d7510f9 (patch) | |
tree | 439d3e7a85e600f5d5b0ea2645007ee82ab26837 /src/gallium/winsys/r600/drm/radeon.c | |
parent | 189a59751352208cb0386131f9ad82256ec9bed9 (diff) |
r600g: add support for kernel bo
this moves to using a pb bufmgr instead of kernel bos directly.
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 7b88075c568..8a5acf62562 100644 --- a/src/gallium/winsys/r600/drm/radeon.c +++ b/src/gallium/winsys/r600/drm/radeon.c @@ -130,6 +130,9 @@ struct radeon *radeon_new(int fd, unsigned device) radeon->mman = pb_malloc_bufmgr_create(); if (!radeon->mman) return NULL; + radeon->kman = radeon_bo_pbmgr_create(radeon); + if (!radeon->kman) + return NULL; return radeon; } @@ -150,6 +153,7 @@ struct radeon *radeon_decref(struct radeon *radeon) } radeon->mman->destroy(radeon->mman); + radeon->kman->destroy(radeon->kman); drmClose(radeon->fd); free(radeon); return NULL; |