[PATCH 4/6] d3d11: Implement d3d11_query_GetDataSize().

Józef Kucia jkucia at codeweavers.com
Wed Jul 6 05:02:32 CDT 2016


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 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)
-- 
2.7.3




More information about the wine-patches mailing list