Changeset 39587 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Dec 12, 2011 5:57:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp
r39508 r39587 3174 3174 return hr; 3175 3175 } 3176 3177 pCaps->Caps2 |= D3DCAPS2_CANSHARERESOURCE | 0x00080000 /*D3DCAPS2_CANRENDERWINDOWED*/;3178 pCaps->DevCaps |= D3DDEVCAPS_FLOATTLVERTEX /* <- must be set according to the docs */3179 /*| D3DDEVCAPS_HWVERTEXBUFFER | D3DDEVCAPS_HWINDEXBUFFER | D3DDEVCAPS_SUBVOLUMELOCK */;3180 pCaps->PrimitiveMiscCaps |= D3DPMISCCAPS_INDEPENDENTWRITEMASKS3181 | D3DPMISCCAPS_FOGINFVF3182 | D3DPMISCCAPS_SEPARATEALPHABLEND | D3DPMISCCAPS_MRTINDEPENDENTBITDEPTHS;3183 pCaps->RasterCaps |= D3DPRASTERCAPS_SUBPIXEL | D3DPRASTERCAPS_STIPPLE | D3DPRASTERCAPS_ZBIAS | D3DPRASTERCAPS_COLORPERSPECTIVE /* keep */;3184 pCaps->TextureCaps |= D3DPTEXTURECAPS_TRANSPARENCY | D3DPTEXTURECAPS_TEXREPEATNOTSCALEDBYSIZE;3185 pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;3186 pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE;3187 pCaps->GuardBandLeft = -8192.;3188 pCaps->GuardBandTop = -8192.;3189 pCaps->GuardBandRight = 8192.;3190 pCaps->GuardBandBottom = 8192.;3191 pCaps->StencilCaps |= D3DSTENCILCAPS_TWOSIDED;3192 pCaps->DeclTypes |= D3DDTCAPS_FLOAT16_2 | D3DDTCAPS_FLOAT16_4;3193 pCaps->VS20Caps.DynamicFlowControlDepth = 24;3194 pCaps->VS20Caps.NumTemps = D3DVS20_MAX_NUMTEMPS;3195 pCaps->PS20Caps.DynamicFlowControlDepth = 24;3196 pCaps->PS20Caps.NumTemps = D3DVS20_MAX_NUMTEMPS;3197 pCaps->VertexTextureFilterCaps |= D3DPTFILTERCAPS_MINFPOINT | D3DPTFILTERCAPS_MAGFPOINT;3198 #if 1 /* workaround for wine not returning InstructionSlots correctly for shaders v3.0 */3199 if ((pCaps->VertexShaderVersion & 0xff00) == 0x0300)3200 {3201 pCaps->MaxVertexShader30InstructionSlots = RT_MIN(32768, pCaps->MaxVertexShader30InstructionSlots);3202 pCaps->MaxPixelShader30InstructionSlots = RT_MIN(32768, pCaps->MaxPixelShader30InstructionSlots);3203 }3204 #endif3205 #ifdef DEBUG3206 if ((pCaps->VertexShaderVersion & 0xff00) == 0x0300)3207 {3208 Assert(pCaps->MaxVertexShader30InstructionSlots >= 512);3209 Assert(pCaps->MaxVertexShader30InstructionSlots <= 32768);3210 Assert(pCaps->MaxPixelShader30InstructionSlots >= 512);3211 Assert(pCaps->MaxPixelShader30InstructionSlots <= 32768);3212 }3213 else if ((pCaps->VertexShaderVersion & 0xff00) == 0x0200)3214 {3215 Assert(pCaps->MaxVertexShader30InstructionSlots == 0);3216 Assert(pCaps->MaxPixelShader30InstructionSlots == 0);3217 }3218 else3219 {3220 Assert(0);3221 }3222 #endif3223 3224 /* needed for Windows Media Player to work properly */3225 pCaps->Caps |= D3DCAPS_READ_SCANLINE;3226 3176 3227 3177 vboxDispDumpD3DCAPS9(pCaps);
Note:
See TracChangeset
for help on using the changeset viewer.