projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f090705
)
st/nine: Wait for pending tasks to execute in swapchain
author
Axel Davy
<axel.davy@ens.fr>
Sat, 7 May 2016 14:25:03 +0000
(16:25 +0200)
committer
Axel Davy
<axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:49 +0000
(23:43 +0200)
Fixes crash after Reset() when using thread_submit=true
Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/swapchain9.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/nine/swapchain9.c
b/src/gallium/state_trackers/nine/swapchain9.c
index 3106063237009f9bcb22c62f23fa9aeef65469b8..fcda9c7837edfd7287245c210c230340a5144375 100644
(file)
--- a/
src/gallium/state_trackers/nine/swapchain9.c
+++ b/
src/gallium/state_trackers/nine/swapchain9.c
@@
-243,6
+243,10
@@
NineSwapChain9_Resize( struct NineSwapChain9 *This,
desc.Width = pParams->BackBufferWidth;
desc.Height = pParams->BackBufferHeight;
+ for (i = 0; i < oldBufferCount; i++) {
+ if (This->tasks[i])
+ _mesa_threadpool_wait_for_task(This->pool, &(This->tasks[i]));
+ }
memset(This->tasks, 0, sizeof(This->tasks));
if (This->pool) {