d3d11: Use wined3d_device_context_dispatch_indirect().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
794dd70ee0
commit
e8bc9b290c
|
@ -1128,7 +1128,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_Dispatch(ID3D11DeviceConte
|
||||||
static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11DeviceContext1 *iface,
|
static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11DeviceContext1 *iface,
|
||||||
ID3D11Buffer *buffer, UINT offset)
|
ID3D11Buffer *buffer, UINT offset)
|
||||||
{
|
{
|
||||||
struct d3d_device *device = device_from_immediate_ID3D11DeviceContext1(iface);
|
struct d3d11_immediate_context *context = impl_from_ID3D11DeviceContext1(iface);
|
||||||
struct d3d_buffer *buffer_impl;
|
struct d3d_buffer *buffer_impl;
|
||||||
|
|
||||||
TRACE("iface %p, buffer %p, offset %u.\n", iface, buffer, offset);
|
TRACE("iface %p, buffer %p, offset %u.\n", iface, buffer, offset);
|
||||||
|
@ -1136,8 +1136,7 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_DispatchIndirect(ID3D11Dev
|
||||||
buffer_impl = unsafe_impl_from_ID3D11Buffer(buffer);
|
buffer_impl = unsafe_impl_from_ID3D11Buffer(buffer);
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
wined3d_device_dispatch_compute_indirect(device->wined3d_device,
|
wined3d_device_context_dispatch_indirect(context->wined3d_context, buffer_impl->wined3d_buffer, offset);
|
||||||
buffer_impl->wined3d_buffer, offset);
|
|
||||||
wined3d_mutex_unlock();
|
wined3d_mutex_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue