[PATCH 10/10] d3d11: Implement Dispatch() for immediate contexts.
Guillaume Charifi
guillaume.charifi at sfr.fr
Sun Jan 29 07:43:41 CST 2017
Signed-off-by: Guillaume Charifi <guillaume.charifi at sfr.fr>
---
dlls/d3d11/device.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index f8c7347..d4afa75 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -857,8 +857,14 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_DrawInstancedIndirect(ID3D
static void STDMETHODCALLTYPE d3d11_immediate_context_Dispatch(ID3D11DeviceContext *iface,
UINT thread_group_count_x, UINT thread_group_count_y, UINT thread_group_count_z)
{
- FIXME("iface %p, thread_group_count_x %u, thread_group_count_y %u, thread_group_count_z %u stub!\n",
+ struct d3d_device *device = device_from_immediate_ID3D11DeviceContext(iface);
+
+ TRACE("iface %p, thread_group_count_x %u, thread_group_count_y %u, thread_group_count_z %u\n",
iface, thread_group_count_x, thread_group_count_y, thread_group_count_z);
+
+ wined3d_mutex_lock();
+ wined3d_device_dispatch_compute(device->wined3d_device, thread_group_count_x, thread_group_count_y, thread_group_count_z);
+ wined3d_mutex_unlock();
}
static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11DeviceContext *iface,
--
Guillaume Charifi <guillaume.charifi at sfr.fr>
More information about the wine-patches
mailing list