From: Guillaume Charifi Subject: [PATCH 10/10] d3d11: Implement Dispatch() for immediate contexts. Message-Id: <20170129134354.28597-10-guillaume.charifi@sfr.fr> Date: Sun, 29 Jan 2017 14:43:41 +0100 In-Reply-To: <20170129134354.28597-1-guillaume.charifi@sfr.fr> References: <20170129134354.28597-1-guillaume.charifi@sfr.fr> Signed-off-by: Guillaume Charifi --- 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