diff options
author | Eric Anholt <eric@anholt.net> | 2007-05-31 09:45:45 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-05-31 09:45:45 -0700 |
commit | 2ac17c68e2d64260168a54a275e839775828f534 (patch) | |
tree | ceb8b3e74c5259713d6a32829baf90983310acfc /src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | |
parent | fb7e21514f96c36e4c5abcb6621d48cb16a8c1e1 (diff) |
Add buffer manager destroy function.
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_bufmgr_ttm.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_bufmgr_ttm.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c index a721a7ce5c..64248a1d87 100644 --- a/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c +++ b/src/mesa/drivers/dri/common/dri_bufmgr_ttm.c @@ -339,6 +339,15 @@ dri_ttm_fence_wait(dri_fence *fence) } } +static void +dri_fake_destroy(dri_bufmgr *bufmgr) +{ + dri_bufmgr_ttm *bufmgr_ttm = (dri_bufmgr_ttm *)bufmgr; + + _glthread_DESTROY_MUTEX(bufmgr_ttm->mutex); + free(bufmgr); +} + /** * Initializes the TTM buffer manager, which uses the kernel to allocate, map, * and manage map buffer objections. |