Henri Verbeet : wined3d: Test for "AMD" in the renderer string as well to detect AMD cards.
Alexandre Julliard
julliard at winehq.org
Mon Nov 8 11:46:23 CST 2010
Module: wine
Branch: master
Commit: 50b76b76cb4464871ea01528cea0cd4ef4602afc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=50b76b76cb4464871ea01528cea0cd4ef4602afc
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Mon Nov 8 11:50:35 2010 +0100
wined3d: Test for "AMD" in the renderer string as well to detect AMD cards.
Specifically, the Gallium r600 driver reports "X.Org" for vendor and a string
of the form "Gallium 0.4 on AMD RV730" for the renderer.
---
dlls/wined3d/directx.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 32d2431..a06130b 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1373,6 +1373,7 @@ static enum wined3d_pci_vendor wined3d_guess_card_vendor(const char *gl_vendor_s
if (strstr(gl_vendor_string, "ATI")
|| strstr(gl_vendor_string, "Advanced Micro Devices, Inc.")
|| strstr(gl_vendor_string, "X.Org R300 Project")
+ || strstr(gl_renderer, "AMD")
|| strstr(gl_renderer, "R100")
|| strstr(gl_renderer, "R200")
|| strstr(gl_renderer, "R300")
More information about the wine-cvs
mailing list