summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-08-28 11:37:07 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-08-28 11:37:07 +0000
commit89a2ea6fd316150d4a50113a12e189eaa98cc6df (patch)
treef8069c2dec6c1a7f9940fff1c697b6832c68ef39
parent41123a85ec88fd5289005dc1b6eb46033fbc3480 (diff)
Add missing wait for busy buffers in bmMapBuffer()
-rw-r--r--src/mesa/drivers/dri/i915/intel_bufmgr.c3
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);