diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2006-08-28 11:37:07 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2006-08-28 11:37:07 +0000 |
commit | 89a2ea6fd316150d4a50113a12e189eaa98cc6df (patch) | |
tree | f8069c2dec6c1a7f9940fff1c697b6832c68ef39 | |
parent | 41123a85ec88fd5289005dc1b6eb46033fbc3480 (diff) |
Add missing wait for busy buffers in bmMapBuffer()
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_bufmgr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_bufmgr.c b/src/mesa/drivers/dri/i915/intel_bufmgr.c index c9efed9f43..3997245f68 100644 --- a/src/mesa/drivers/dri/i915/intel_bufmgr.c +++ b/src/mesa/drivers/dri/i915/intel_bufmgr.c @@ -307,6 +307,9 @@ bmMapBuffer(struct bufmgr *bm, unsigned buffer, unsigned flags) assert(buf); /* assert(!buf->mapped); */ + + drmBufWaitBusy(bm->driFd, buf); + retval = drmMMMapBuffer(bm->driFd, buf); } UNLOCK(bm); |