Józef Kucia : d3d11: Implement d3d11_query_GetDataSize().
Module: wine Branch: master Commit: 7a756ad1b4ba639265cb8dac3d02fe285b979236 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a756ad1b4ba639265cb8dac3d... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Wed Jul 6 12:02:32 2016 +0200 d3d11: Implement d3d11_query_GetDataSize(). Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d11/async.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dlls/d3d11/async.c b/dlls/d3d11/async.c index f91a053..38c8a28 100644 --- a/dlls/d3d11/async.c +++ b/dlls/d3d11/async.c @@ -136,9 +136,16 @@ static HRESULT STDMETHODCALLTYPE d3d11_query_SetPrivateDataInterface(ID3D11Query static UINT STDMETHODCALLTYPE d3d11_query_GetDataSize(ID3D11Query *iface) { - FIXME("iface %p stub!\n", iface); + struct d3d_query *query = impl_from_ID3D11Query(iface); + unsigned int data_size; - return 0; + TRACE("iface %p.\n", iface); + + wined3d_mutex_lock(); + data_size = wined3d_query_get_data_size(query->wined3d_query); + wined3d_mutex_unlock(); + + return data_size; } static void STDMETHODCALLTYPE d3d11_query_GetDesc(ID3D11Query *iface, D3D11_QUERY_DESC *desc)
participants (1)
-
Alexandre Julliard