wined3d: Separate AMD GPUs in D3D9 and D3D10 models, this allows for a more correct fall back when the GPU table isn't up to date.

D3D10_CAPABLE should work on any AMD OpenGL 3.0 driver (those came out in september 2008) and on OSX 10.5 and up.
This commit is contained in:
Roderick Colenbrander 2010-04-16 08:49:41 +02:00 committed by Alexandre Julliard
parent 057c64c5b0
commit 3b993117c3
1 changed files with 8 additions and 1 deletions

View File

@ -1506,7 +1506,7 @@ static enum wined3d_pci_device select_card_ati_binary(const struct wined3d_gl_in
* *
* Beware: renderer string do not match exact card model, * Beware: renderer string do not match exact card model,
* eg HD 4800 is returned for multiple cards, even for RV790 based ones. */ * eg HD 4800 is returned for multiple cards, even for RV790 based ones. */
if (WINE_D3D9_CAPABLE(gl_info)) if (WINE_D3D10_CAPABLE(gl_info))
{ {
/* Radeon EG CYPRESS XT / PRO HD5800 - highend */ /* Radeon EG CYPRESS XT / PRO HD5800 - highend */
if (strstr(gl_renderer, "HD 5800") /* Radeon EG CYPRESS HD58xx generic renderer string */ if (strstr(gl_renderer, "HD 5800") /* Radeon EG CYPRESS HD58xx generic renderer string */
@ -1603,6 +1603,13 @@ static enum wined3d_pci_device select_card_ati_binary(const struct wined3d_gl_in
return CARD_ATI_RADEON_HD3200; return CARD_ATI_RADEON_HD3200;
} }
/* Default for when no GPU has been found */
*vidmem = 128; /* 128MB */
return CARD_ATI_RADEON_HD3200;
}
if (WINE_D3D8_CAPABLE(gl_info))
{
/* Radeon R5xx */ /* Radeon R5xx */
if (strstr(gl_renderer, "X1600") if (strstr(gl_renderer, "X1600")
|| strstr(gl_renderer, "X1650") || strstr(gl_renderer, "X1650")