VirtualBox

Changeset 40125 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Feb 14, 2012 11:38:59 AM (13 years ago)
Author:
vboxsync
Message:

wine: fix shader version detection, some extensions-to-caps fixes

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r39900 r40125  
    32003200static HRESULT APIENTRY vboxWddmDispGetCaps (HANDLE hAdapter, CONST D3DDDIARG_GETCAPS* pData)
    32013201{
     3202        VBOXDISP_DDI_PROLOGUE();
     3203
    32023204    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p), caps type(%d)\n", hAdapter, pData->Type));
    32033205
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/directx.c

    r39618 r40125  
    445445    pCaps->RasterCaps |= D3DPRASTERCAPS_SUBPIXEL | D3DPRASTERCAPS_STIPPLE | D3DPRASTERCAPS_ZBIAS | D3DPRASTERCAPS_COLORPERSPECTIVE /* keep */;
    446446    pCaps->TextureCaps |= D3DPTEXTURECAPS_TRANSPARENCY | D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE;
    447     pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;
    448     pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;
     447//    pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;
     448//    pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;
    449449    pCaps->StencilCaps |= D3DSTENCILCAPS_TWOSIDED;
    450450    pCaps->DeclTypes |= D3DDTCAPS_FLOAT16_2 | D3DDTCAPS_FLOAT16_4;
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/directx.c

    r39819 r40125  
    9393    {"GL_ARB_texture_float",                ARB_TEXTURE_FLOAT,              0                           },
    9494    {"GL_ARB_texture_mirrored_repeat",      ARB_TEXTURE_MIRRORED_REPEAT,    0                           },
     95    {"GL_IBM_texture_mirrored_repeat",      ARB_TEXTURE_MIRRORED_REPEAT,    0                           },
    9596    {"GL_ARB_texture_non_power_of_two",     ARB_TEXTURE_NON_POWER_OF_TWO,   MAKEDWORD_VERSION(2, 0)     },
    9697    {"GL_ARB_texture_rectangle",            ARB_TEXTURE_RECTANGLE,          0                           },
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/glsl_shader.c

    r39569 r40125  
    50435043     */
    50445044    if ((gl_info->supported[NV_VERTEX_PROGRAM2] && !gl_info->supported[NV_VERTEX_PROGRAM3])
    5045             || gl_info->limits.arb_ps_instructions <= 512)
     5045            || gl_info->limits.arb_ps_instructions <= 512
     5046            || gl_info->limits.glsl_vs_float_constants < 256)
    50465047        pCaps->VertexShaderVersion = WINED3DVS_VERSION(2,0);
    50475048    else
     
    50625063     */
    50635064    if ((gl_info->supported[NV_FRAGMENT_PROGRAM] && !gl_info->supported[NV_FRAGMENT_PROGRAM2])
    5064             || gl_info->limits.arb_ps_instructions <= 512)
     5065            || gl_info->limits.arb_ps_instructions <= 512
     5066            || gl_info->limits.glsl_vs_float_constants < 256)
    50655067        pCaps->PixelShaderVersion = WINED3DPS_VERSION(2,0);
    50665068    else
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