[PATCH v2 4/7] dxgi: Partially implement IDXGIAdapter3::SetVideoMemoryReservation().

Conor McCarthy cmccarthy at codeweavers.com
Thu Nov 14 07:48:28 CST 2019


Used by Hitman 2.
Reservations are recorded but nothing is actually reserved.

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
 dlls/dxgi/adapter.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/dxgi/adapter.c b/dlls/dxgi/adapter.c
index d277dfd5..5507790c 100644
--- a/dlls/dxgi/adapter.c
+++ b/dlls/dxgi/adapter.c
@@ -332,10 +332,12 @@ static HRESULT STDMETHODCALLTYPE dxgi_adapter_QueryVideoMemoryInfo(IWineDXGIAdap
 static HRESULT STDMETHODCALLTYPE dxgi_adapter_SetVideoMemoryReservation(IWineDXGIAdapter *iface,
         UINT node_index, DXGI_MEMORY_SEGMENT_GROUP segment_group, UINT64 reservation)
 {
-    FIXME("iface %p, node_index %u, segment_group %#x, reservation 0x%s stub!\n",
+    struct dxgi_adapter *adapter = impl_from_IWineDXGIAdapter(iface);
+
+    FIXME("iface %p, node_index %u, segment_group %#x, reservation 0x%s partial stub!\n",
             iface, node_index, segment_group, wine_dbgstr_longlong(reservation));
 
-    return S_OK;
+    return wined3d_set_adapter_reserved_memory(adapter->factory->wined3d, adapter->ordinal, segment_group, reservation);
 }
 
 static HRESULT STDMETHODCALLTYPE dxgi_adapter_RegisterVideoMemoryBudgetChangeNotificationEvent(
-- 
2.23.0




More information about the wine-devel mailing list