diff options
author | Eric Anholt <eric@anholt.net> | 2008-08-08 13:13:46 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2008-08-08 13:58:29 -0700 |
commit | 46e9274e8538e5b0517f611dca99dde611f4e95d (patch) | |
tree | bd2dac93efeb25aa62d08ea01cd95317ed3d116a /libdrm/dri_bufmgr.c | |
parent | 5968e061db90451b19c3948bbd91c6d5ac9af941 (diff) |
Replace the check_aperture API with one we can make thread-safe.
While the bufmgr isn't thread-safe at the moment, we need it to be for shared
objects between contexts.
Diffstat (limited to 'libdrm/dri_bufmgr.c')
-rw-r--r-- | libdrm/dri_bufmgr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdrm/dri_bufmgr.c b/libdrm/dri_bufmgr.c index 7657df61..a6eda3bd 100644 --- a/libdrm/dri_bufmgr.c +++ b/libdrm/dri_bufmgr.c @@ -135,7 +135,7 @@ dri_bufmgr_set_debug(dri_bufmgr *bufmgr, int enable_debug) } int -dri_bufmgr_check_aperture_space(dri_bo *bo) +dri_bufmgr_check_aperture_space(dri_bo **bo_array, int count) { - return bo->bufmgr->check_aperture_space(bo); + return bo_array[0]->bufmgr->check_aperture_space(bo_array, count); } |