wined3d: Added further Nvidia Geforce 8xxx detection. (try 2)

Aaron Brazener rnbrznr at googlemail.com
Wed Dec 30 07:22:06 CST 2009


The attached patch is to add the missing PCI device information for
the Nvidia 8xxx series of cards.

The difference between this and the previous attempt is that the
duplicated entries have been removed as described below:

"In this case I will recreate the patch only stating missing cards XY00
and excluding the duplications caused by (for example) 8800GT, 880GS."
-------------- next part --------------
From b5605e02b0c6bb701269f95a20eb705dc757e1fd Mon Sep 17 00:00:00 2001
From: Aaron Brazener <rnbrznr at gmail.com>
Date: Wed, 30 Dec 2009 13:10:25 +0000
Subject: wined3d: Added further Nvidia Geforce 8xxx detection.

---
 dlls/wined3d/directx.c         |    4 +++-
 dlls/wined3d/wined3d_private.h |    4 ++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 713a349..f9bc752 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1288,7 +1288,9 @@ static enum wined3d_pci_device wined3d_guess_card(const struct wined3d_gl_info *
                 }
 
                 /* Geforce8 - lowend */
-                if (strstr(gl_renderer, "8300")
+                if (strstr(gl_renderer, "8100")
+                        || strstr(gl_renderer, "8200")
+                        || strstr(gl_renderer, "8300")
                         || strstr(gl_renderer, "8400")
                         || strstr(gl_renderer, "8500"))
                 {
diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h
index b0c2804..79f761b 100644
--- a/dlls/wined3d/wined3d_private.h
+++ b/dlls/wined3d/wined3d_private.h
@@ -1297,7 +1297,11 @@ enum wined3d_pci_device
     CARD_NVIDIA_GEFORCE_7300        = 0x01d7, /* GeForce Go 7300 */
     CARD_NVIDIA_GEFORCE_7600        = 0x0391,
     CARD_NVIDIA_GEFORCE_7800GT      = 0x0092,
+    CARD_NVIDIA_GEFORCE_8100        = 0x084F,
+    CARD_NVIDIA_GEFORCE_8200        = 0x0849, /* Other PCI ID 0x084B */
     CARD_NVIDIA_GEFORCE_8300GS      = 0x0423,
+    CARD_NVIDIA_GEFORCE_8400GS      = 0x0404,
+    CARD_NVIDIA_GEFORCE_8500GT      = 0x0421,
     CARD_NVIDIA_GEFORCE_8600GT      = 0x0402,
     CARD_NVIDIA_GEFORCE_8600MGT     = 0x0407,
     CARD_NVIDIA_GEFORCE_8800GTS     = 0x0193,
-- 
1.6.3.3


More information about the wine-patches mailing list