Fix ATI HD4800 being reported as ATI 9500

Robert Key hpestilence at gmail.com
Thu May 14 00:08:33 CDT 2009


Changelog:
* Add HD4800 series to be detected in graphics card table.
  This makes it so that the ati dx9 quirks aren't applied.

   Also added the pci id of HD4850 to wined3d_gl.h
-------------- next part --------------
From 2b3044b6112374669a1467f3b368b68715fe5439 Mon Sep 17 00:00:00 2001
From: Robert Key <hpestilence at gmail.com>
Date: Thu, 14 May 2009 00:56:53 -0400
Subject: Fix ATI HD4800 series being reported as ATI 9500

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

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index f5d4d3e..14b58e3 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1271,10 +1271,11 @@ static BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) {
             break;
         case VENDOR_ATI:
             if(WINE_D3D9_CAPABLE(gl_info)) {
-                /* Radeon R6xx HD2900/HD3800 - highend */
+                /* Radeon R6xx-7xx HD2900/HD3800/HD4800 - highend */
                 if (strstr(gl_info->gl_renderer, "HD 2900") ||
                     strstr(gl_info->gl_renderer, "HD 3870") ||
-                    strstr(gl_info->gl_renderer, "HD 3850"))
+                    strstr(gl_info->gl_renderer, "HD 3850") ||
+                    strstr(gl_info->gl_renderer, "HD 4800"))
                 {
                     gl_info->gl_card = CARD_ATI_RADEON_HD2900;
                     vidmem = 512; /* HD2900/HD3800 uses 256-1024MB */
diff --git a/dlls/wined3d/wined3d_gl.h b/dlls/wined3d/wined3d_gl.h
index 1a9c925..65ff97b 100644
--- a/dlls/wined3d/wined3d_gl.h
+++ b/dlls/wined3d/wined3d_gl.h
@@ -3302,6 +3302,7 @@ typedef enum _GL_Cards {
   CARD_ATI_RADEON_HD2600          = 0x9581,
   CARD_ATI_RADEON_HD2900          = 0x9400,
   CARD_ATI_RADEON_HD3200          = 0x9620,
+  CARD_ATI_RADEON_HD4850          = 0x9442,
 
   CARD_NVIDIA_RIVA_128            = 0x0018,
   CARD_NVIDIA_RIVA_TNT            = 0x0020,
-- 
1.6.3



More information about the wine-patches mailing list