VirtualBox

Changeset 40588 in vbox


Ignore:
Timestamp:
Mar 23, 2012 9:14:28 AM (13 years ago)
Author:
vboxsync
Message:

wined3d/wddm: try fix mesa intel hd regression

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  
    887887
    888888#ifdef VBOX_WITH_WDDM
     889static 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
    889898static BOOL match_mesa_nvidia(const struct wined3d_gl_info *gl_info, const char *gl_renderer,
    890899        enum wined3d_gl_vendor gl_vendor, enum wined3d_pci_vendor card_vendor, enum wined3d_pci_device device)
     
    9971006#ifdef VBOX_WITH_WDDM
    9981007    {
    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"
    10021016    },
    10031017#endif
     
    12621276            || strstr(gl_renderer, "Intel(R)")
    12631277            || 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
    12641283        return GL_VENDOR_INTEL;
     1284    }
    12651285
    12661286    if (strstr(gl_vendor_string, "Mesa")
     
    19862006        const char *gl_renderer, unsigned int *vidmem)
    19872007{
     2008#ifdef VBOX_WITH_WDDM
     2009    if (strstr(gl_renderer, "Sandybridge"))
     2010        return CARD_INTEL_SBHD;
     2011#endif
    19882012    FIXME_(d3d_caps)("Card selection not handled for Mesa Intel driver\n");
    19892013    return CARD_INTEL_I915G;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/wined3d_private.h

    r40388 r40588  
    14411441    CARD_INTEL_I945GM               = 0x27a2, /* Same as GMA 950? */
    14421442    CARD_INTEL_X3100                = 0x2a02, /* Found in Macs. Same as GMA 965? */
     1443    CARD_INTEL_SBHD                 = 0x0126, /* SundyBridge HD Desktop */
    14431444};
    14441445
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette