d3d11: add a stub dll

Austin English austinenglish at gmail.com
Mon Dec 10 21:16:41 CST 2012


Gets the Stone Giant demo a bit further (creates a window, at least,
before wanting more stuff).

I don't have the other games listed to test if it's enough for them.

-- 
-Austin
-------------- next part --------------
From 779989a16d05db7ec4413778dda0d4afb4d310f3 Mon Sep 17 00:00:00 2001
From: Austin English <austinenglish at gmail.com>
Date: Mon, 10 Dec 2012 19:08:06 -0800
Subject: [PATCH 2/2] d3d11: add stub dll

---
 configure.ac            |    1 +
 dlls/d3d11/Makefile.in  |    7 +++++++
 dlls/d3d11/d3d11.spec   |   42 ++++++++++++++++++++++++++++++++++++++++++
 dlls/d3d11/d3d11_main.c |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 dlls/d3d11/Makefile.in
 create mode 100644 dlls/d3d11/d3d11.spec
 create mode 100644 dlls/d3d11/d3d11_main.c

diff --git a/configure.ac b/configure.ac
index 01d84cd..2a4ea4e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2580,6 +2580,7 @@ WINE_CONFIG_DLL(d3d10,,[implib])
 WINE_CONFIG_TEST(dlls/d3d10/tests)
 WINE_CONFIG_DLL(d3d10core,,[implib])
 WINE_CONFIG_TEST(dlls/d3d10core/tests)
+WINE_CONFIG_DLL(d3d11)
 WINE_CONFIG_DLL(d3d8,,[implib])
 WINE_CONFIG_TEST(dlls/d3d8/tests)
 WINE_CONFIG_DLL(d3d9,,[implib])
diff --git a/dlls/d3d11/Makefile.in b/dlls/d3d11/Makefile.in
new file mode 100644
index 0000000..f7c9470
--- /dev/null
+++ b/dlls/d3d11/Makefile.in
@@ -0,0 +1,7 @@
+MODULE    = d3d11.dll
+
+C_SRCS = \
+	d3d11_main.c
+
+ at MAKE_DLL_RULES@
+
diff --git a/dlls/d3d11/d3d11.spec b/dlls/d3d11/d3d11.spec
new file mode 100644
index 0000000..0ff00d2
--- /dev/null
+++ b/dlls/d3d11/d3d11.spec
@@ -0,0 +1,42 @@
+@ stub D3D11CoreCreateDevice
+@ stub D3D11CoreCreateLayeredDevice
+@ stub D3D11CoreGetLayeredDeviceSize
+@ stub D3D11CoreRegisterLayers
+@ stub D3D11CreateDevice
+@ stub D3D11CreateDeviceAndSwapChain
+@ stub D3DKMTCloseAdapter
+@ stub D3DKMTCreateAllocation
+@ stub D3DKMTCreateContext
+@ stub D3DKMTCreateDevice
+@ stub D3DKMTCreateSynchronizationObject
+@ stub D3DKMTDestroyAllocation
+@ stub D3DKMTDestroyContext
+@ stub D3DKMTDestroyDevice
+@ stub D3DKMTDestroySynchronizationObject
+@ stub D3DKMTEscape
+@ stub D3DKMTGetContextSchedulingPriority
+@ stub D3DKMTGetDeviceState
+@ stub D3DKMTGetDisplayModeList
+@ stub D3DKMTGetMultisampleMethodList
+@ stub D3DKMTGetRuntimeData
+@ stub D3DKMTGetSharedPrimaryHandle
+@ stub D3DKMTLock
+@ stub D3DKMTOpenAdapterFromHdc
+@ stub D3DKMTOpenResource
+@ stub D3DKMTPresent
+@ stub D3DKMTQueryAdapterInfo
+@ stub D3DKMTQueryAllocationResidency
+@ stub D3DKMTQueryResourceInfo
+@ stub D3DKMTRender
+@ stub D3DKMTSetAllocationPriority
+@ stub D3DKMTSetContextSchedulingPriority
+@ stub D3DKMTSetDisplayMode
+@ stub D3DKMTSetDisplayPrivateDriverFormat
+@ stub D3DKMTSetGammaRamp
+@ stub D3DKMTSetVidPnSourceOwner
+@ stub D3DKMTSignalSynchronizationObject
+@ stub D3DKMTUnlock
+@ stub D3DKMTWaitForSynchronizationObject
+@ stub D3DKMTWaitForVerticalBlankEvent
+@ stub OpenAdapter10
+@ stub OpenAdapter10_2
diff --git a/dlls/d3d11/d3d11_main.c b/dlls/d3d11/d3d11_main.c
new file mode 100644
index 0000000..6a6cc45
--- /dev/null
+++ b/dlls/d3d11/d3d11_main.c
@@ -0,0 +1,46 @@
+/*
+ * Direct3D 11
+ *
+ * Copyright 2012 The Wine Project
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ *
+ */
+
+#include "config.h"
+
+#include <stdarg.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(d3d11);
+
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
+{
+    TRACE("(0x%p, %d, %p)\n", hinstDLL, fdwReason, lpvReserved);
+
+    switch (fdwReason)
+    {
+        case DLL_PROCESS_ATTACH:
+            DisableThreadLibraryCalls(hinstDLL);
+            break;
+        case DLL_PROCESS_DETACH:
+            break;
+    }
+
+    return TRUE;
+}
-- 
1.7.8.6


More information about the wine-patches mailing list