mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
Add missing wait for busy buffers in bmMapBuffer()
This commit is contained in:
parent
41123a85ec
commit
89a2ea6fd3
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue