[PATCH] wined3d: Add Geforce GTX460 support.
Roderick Colenbrander
thunderbird2k at gmail.com
Wed Jul 14 14:48:49 CDT 2010
This GPU is expected to become quite popular soon, so it is important to have detection for it in Wine 1.2.
---
dlls/wined3d/directx.c | 8 ++++++++
dlls/wined3d/wined3d_private.h | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 268fee1..c6f9b12 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1025,6 +1025,7 @@ static const struct driver_version_information driver_version_table[] =
{HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GTX280, "NVIDIA GeForce GTX 280", 15, 11, 9745 },
{HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GT325M, "NVIDIA GeForce GT 325M", 15, 11, 9745 },
{HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GTS350M, "NVIDIA GeForce GTS 350M", 15, 11, 9745 },
+ {HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GTX460, "NVIDIA GeForce GTX 460", 15, 12, 5635 },
{HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GTX470, "NVIDIA GeForce GTX 470", 15, 11, 9775 },
{HW_VENDOR_NVIDIA, CARD_NVIDIA_GEFORCE_GTX480, "NVIDIA GeForce GTX 480", 15, 11, 9775 },
/* ATI cards. The driver versions are somewhat similar, but not quite the same. Let's hardcode. */
@@ -1279,6 +1280,13 @@ static enum wined3d_pci_device select_card_nvidia_binary(const struct wined3d_gl
return CARD_NVIDIA_GEFORCE_GTX470;
}
+ /* Geforce 400 - midend */
+ if (strstr(gl_renderer, "GTX 460"))
+ {
+ *vidmem = 768; /* GTX 460 has 768-1024MB */
+ return CARD_NVIDIA_GEFORCE_GTX460;
+ }
+
/* Geforce 300 highend mobile */
if (strstr(gl_renderer, "GTS 350M")
|| strstr(gl_renderer, "GTS 360M"))
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index de60cf6..8985742 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1317,6 +1317,7 @@ enum wined3d_pci_device
CARD_NVIDIA_GEFORCE_GTX280 = 0x05e1,
CARD_NVIDIA_GEFORCE_GT325M = 0x0a35,
CARD_NVIDIA_GEFORCE_GTS350M = 0x0cb0,
+ CARD_NVIDIA_GEFORCE_GTX460 = 0x0e22,
CARD_NVIDIA_GEFORCE_GTX470 = 0x06cd,
CARD_NVIDIA_GEFORCE_GTX480 = 0x06c0,
--
1.7.0.4
More information about the wine-patches
mailing list