d3d11: Don't grab wined3d lock for query issue functions.
Signed-off-by: Jan Sikorski <jsikorski@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
589a97ae34
commit
af43bbdccc
|
@ -289,10 +289,8 @@ static void STDMETHODCALLTYPE d3d10_query_Begin(ID3D10Query *iface)
|
|||
|
||||
TRACE("iface %p.\n", iface);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
if (FAILED(hr = wined3d_query_issue(query->wined3d_query, WINED3DISSUE_BEGIN)))
|
||||
ERR("Failed to issue query, hr %#x.\n", hr);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d10_query_End(ID3D10Query *iface)
|
||||
|
@ -302,10 +300,8 @@ static void STDMETHODCALLTYPE d3d10_query_End(ID3D10Query *iface)
|
|||
|
||||
TRACE("iface %p.\n", iface);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
if (FAILED(hr = wined3d_query_issue(query->wined3d_query, WINED3DISSUE_END)))
|
||||
ERR("Failed to issue query, hr %#x.\n", hr);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d10_query_GetData(ID3D10Query *iface, void *data, UINT data_size, UINT flags)
|
||||
|
|
|
@ -1015,9 +1015,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_Begin(ID3D11DeviceContext1 *i
|
|||
|
||||
TRACE("iface %p, asynchronous %p.\n", iface, asynchronous);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
wined3d_device_context_issue_query(context->wined3d_context, query->wined3d_query, WINED3DISSUE_BEGIN);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static void STDMETHODCALLTYPE d3d11_device_context_End(ID3D11DeviceContext1 *iface,
|
||||
|
@ -1028,9 +1026,7 @@ static void STDMETHODCALLTYPE d3d11_device_context_End(ID3D11DeviceContext1 *ifa
|
|||
|
||||
TRACE("iface %p, asynchronous %p.\n", iface, asynchronous);
|
||||
|
||||
wined3d_mutex_lock();
|
||||
wined3d_device_context_issue_query(context->wined3d_context, query->wined3d_query, WINED3DISSUE_END);
|
||||
wined3d_mutex_unlock();
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d11_device_context_GetData(ID3D11DeviceContext1 *iface,
|
||||
|
|
Loading…
Reference in New Issue