d3d11: Use GRecMutex to protect immediate context and dxgi API call
authorSeungha Yang <seungha.yang@navercorp.com>
Thu, 19 Dec 2019 15:17:33 +0000 (00:17 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Fri, 20 Dec 2019 10:21:03 +0000 (19:21 +0900)
commit0788492461e1b559230cc5c3a354fe5f48f95f8b
treece456c838825b7a338681de820c14dda29f51f7d
parenta0a85cd80c9b66259dd77ed696af0ddd2adb8fc2
d3d11: Use GRecMutex to protect immediate context and dxgi API call

In some cases, rendering and dxgi (e.g., swapchain) APIs should be
called from window message pump thread, but current design (dedicated d3d11 thread)
make it impossible. To solve it, change concurrency model to locking based one
from single-thread model.
12 files changed:
sys/d3d11/gstd3d11colorconvert.c
sys/d3d11/gstd3d11colorconverter.c
sys/d3d11/gstd3d11device.c
sys/d3d11/gstd3d11device.h
sys/d3d11/gstd3d11download.c
sys/d3d11/gstd3d11format.c
sys/d3d11/gstd3d11memory.c
sys/d3d11/gstd3d11shader.c
sys/d3d11/gstd3d11shader.h
sys/d3d11/gstd3d11upload.c
sys/d3d11/gstd3d11window.c
sys/d3d11/gstd3d11window.h