Add nvapi patch to stub NvAPI_D3D9_RegisterResource.

This commit is contained in:
Michael Müller 2015-01-14 22:55:10 +01:00
parent 93764fd3d4
commit 60d18d4610
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,39 @@
From 1da7ea0e73111f1dfbc9f8711e68c6a43eb9a23f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Wed, 14 Jan 2015 22:50:35 +0100
Subject: nvapi: Add stub for NvAPI_D3D9_RegisterResource.
---
dlls/nvapi/nvapi.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dlls/nvapi/nvapi.c b/dlls/nvapi/nvapi.c
index 28483be..545bb5a 100644
--- a/dlls/nvapi/nvapi.c
+++ b/dlls/nvapi/nvapi.c
@@ -570,6 +570,12 @@ static NvAPI_Status CDECL NvAPI_D3D_GetObjectHandleForResource(IUnknown *pDevice
return NVAPI_ERROR;
}
+static NvAPI_Status CDECL NvAPI_D3D9_RegisterResource(IDirect3DResource9* pResource)
+{
+ FIXME("(%p): stub\n", pResource);
+ return NVAPI_ERROR;
+}
+
void* CDECL nvapi_QueryInterface(unsigned int offset)
{
static const struct
@@ -610,7 +616,8 @@ void* CDECL nvapi_QueryInterface(unsigned int offset)
{0xd22bdd7e, NvAPI_Unload},
{0x4b708b54, NvAPI_D3D_GetCurrentSLIState},
{0xee1370cf, NvAPI_GetLogicalGPUFromDisplay},
- {0xfceac864, NvAPI_D3D_GetObjectHandleForResource}
+ {0xfceac864, NvAPI_D3D_GetObjectHandleForResource},
+ {0xa064bdfc, NvAPI_D3D9_RegisterResource}
};
unsigned int i;
TRACE("(%x)\n", offset);
--
1.9.1

View File

@ -2194,6 +2194,7 @@ if test "$enable_nvapi_Stub_DLL" -eq 1; then
patch_apply nvapi-Stub_DLL/0013-nvapi-tests-Use-structure-to-list-imports.patch
patch_apply nvapi-Stub_DLL/0014-nvapi-Add-stub-for-NvAPI_GetLogicalGPUFromDisplay.patch
patch_apply nvapi-Stub_DLL/0015-nvapi-Add-stub-for-NvAPI_D3D_GetObjectHandleForResou.patch
patch_apply nvapi-Stub_DLL/0016-nvapi-Add-stub-for-NvAPI_D3D9_RegisterResource.patch
(
echo '+ { "Michael Müller", "nvapi: First implementation.", 1 },';
echo '+ { "Michael Müller", "nvapi: Add stubs for NvAPI_EnumLogicalGPUs and undocumented equivalent.", 1 },';
@ -2210,6 +2211,7 @@ if test "$enable_nvapi_Stub_DLL" -eq 1; then
echo '+ { "Michael Müller", "nvapi/tests: Use structure to list imports.", 1 },';
echo '+ { "Michael Müller", "nvapi: Add stub for NvAPI_GetLogicalGPUFromDisplay.", 1 },';
echo '+ { "Michael Müller", "nvapi: Add stub for NvAPI_D3D_GetObjectHandleForResource.", 1 },';
echo '+ { "Michael Müller", "nvapi: Add stub for NvAPI_D3D9_RegisterResource.", 1 },';
) >> "$patchlist"
fi