wined3d/directx.c: Corrected Nvidia 8400 and 8500 reporting

Seth Shelnutt shelnutt2 at gmail.com
Sun Jul 11 21:04:38 CDT 2010


 Moves the Nvidia Geforce 8400 and 8500 to be reported as 8600GT as
they have feature parity. This is needed for CUDA applications to support
these two cards. They are currently reported as an 8300 which is not CUDA
capable.

Thanks,

Seth Shelnutt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100712/0f9c0035/attachment-0001.htm>
-------------- next part --------------
From c0093172a4aa601d0f296055df108115f2b01a0a Mon Sep 17 00:00:00 2001
From: Seth Shelnutt <Shelnutt2 at gmail.com>
Date: Sun, 11 Jul 2010 21:46:07 +0000
Subject: Moves the Nvidia Geforce 8400 and 8500 to be reported as 8600GT as they have feature parity. This is needed for CUDA applications to support these two cards. They are currently reported as an 8300 which is not CUDA capable.


---
 dlls/wined3d/directx.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 268fee1..eeaa0b4 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1398,7 +1398,9 @@ static enum wined3d_pci_device select_card_nvidia_binary(const struct wined3d_gl
         }
 
         /* Geforce8 - midend */
-        if (strstr(gl_renderer, "8600")
+        if (strstr(gl_renderer, "8400")
+                || strstr(gl_renderer, "8500")
+                || strstr(gl_renderer, "8600")
                 || strstr(gl_renderer, "8700"))
         {
             *vidmem = 256;
@@ -1408,9 +1410,7 @@ static enum wined3d_pci_device select_card_nvidia_binary(const struct wined3d_gl
         /* Geforce8 - lowend */
         if (strstr(gl_renderer, "8100")
                 || strstr(gl_renderer, "8200")
-                || strstr(gl_renderer, "8300")
-                || strstr(gl_renderer, "8400")
-                || strstr(gl_renderer, "8500"))
+                || strstr(gl_renderer, "8300"))
         {
             *vidmem = 128; /* 128-256MB for a 8300, 256-512MB for a 8400 */
             return CARD_NVIDIA_GEFORCE_8300GS;
-- 
1.7.0.3


More information about the wine-patches mailing list