Changeset 40588 in vbox
- Timestamp:
- Mar 23, 2012 9:14:28 AM (13 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/directx.c
r40480 r40588 887 887 888 888 #ifdef VBOX_WITH_WDDM 889 static BOOL match_mesa_intel_hd(const struct wined3d_gl_info *gl_info, const char *gl_renderer, 890 enum wined3d_gl_vendor gl_vendor, enum wined3d_pci_vendor card_vendor, enum wined3d_pci_device device) 891 { 892 if (card_vendor != HW_VENDOR_INTEL) return FALSE; 893 if (gl_vendor != GL_VENDOR_MESA) return FALSE; 894 if (device != CARD_INTEL_SBHD) return FALSE; 895 return TRUE; 896 } 897 889 898 static BOOL match_mesa_nvidia(const struct wined3d_gl_info *gl_info, const char *gl_renderer, 890 899 enum wined3d_gl_vendor gl_vendor, enum wined3d_pci_vendor card_vendor, enum wined3d_pci_device device) … … 997 1006 #ifdef VBOX_WITH_WDDM 998 1007 { 999 match_mesa_nvidia, 1000 quirk_no_shader_3, 1001 "disable shader 3 support" 1008 match_mesa_nvidia, 1009 quirk_no_shader_3, 1010 "disable shader 3 support" 1011 }, 1012 { 1013 match_mesa_intel_hd, 1014 quirk_no_np2, 1015 "disable np2 for mesa intel hd" 1002 1016 }, 1003 1017 #endif … … 1262 1276 || strstr(gl_renderer, "Intel(R)") 1263 1277 || strstr(gl_vendor_string, "Intel Inc.")) 1278 { 1279 #ifdef VBOX_WITH_WDDM 1280 if (strstr(gl_renderer, "Mesa")) 1281 return GL_VENDOR_MESA; 1282 #endif 1264 1283 return GL_VENDOR_INTEL; 1284 } 1265 1285 1266 1286 if (strstr(gl_vendor_string, "Mesa") … … 1986 2006 const char *gl_renderer, unsigned int *vidmem) 1987 2007 { 2008 #ifdef VBOX_WITH_WDDM 2009 if (strstr(gl_renderer, "Sandybridge")) 2010 return CARD_INTEL_SBHD; 2011 #endif 1988 2012 FIXME_(d3d_caps)("Card selection not handled for Mesa Intel driver\n"); 1989 2013 return CARD_INTEL_I915G; -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/wined3d_private.h
r40388 r40588 1441 1441 CARD_INTEL_I945GM = 0x27a2, /* Same as GMA 950? */ 1442 1442 CARD_INTEL_X3100 = 0x2a02, /* Found in Macs. Same as GMA 965? */ 1443 CARD_INTEL_SBHD = 0x0126, /* SundyBridge HD Desktop */ 1443 1444 }; 1444 1445
Note:
See TracChangeset
for help on using the changeset viewer.