Changeset 32622 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
- Timestamp:
- Sep 17, 2010 8:18:39 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/d3d9_private.h
r30916 r32622 48 48 #include "wine/wined3d.h" 49 49 50 #ifdef VBOX WDDM50 #ifdef VBOX_WITH_WDDM 51 51 #include "../vbox/VBoxWineEx.h" 52 52 #endif … … 321 321 UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level, 322 322 DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality 323 #ifdef VBOX WDDM323 #ifdef VBOX_WITH_WDDM 324 324 , HANDLE *shared_handle 325 325 , void *pvClientMem … … 438 438 HRESULT texture_init(IDirect3DTexture9Impl *texture, IDirect3DDevice9Impl *device, 439 439 UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool 440 #ifdef VBOX WDDM440 #ifdef VBOX_WITH_WDDM 441 441 , HANDLE *shared_handle 442 442 , void *pvClientMem -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/device.c
r32461 r32622 462 462 return ret; 463 463 } 464 #ifdef VBOX WDDM464 #ifdef VBOX_WITH_WDDM 465 465 static HRESULT IDirect3DDevice9Impl_DoCreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, 466 466 D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain) … … 498 498 } 499 499 500 #ifdef VBOX WDDM500 #ifdef VBOX_WITH_WDDM 501 501 static HRESULT WINAPI DECLSPEC_HOTPATCH IDirect3DDevice9Impl_CreateAdditionalSwapChain(IDirect3DDevice9Ex *iface, 502 502 D3DPRESENT_PARAMETERS *present_parameters, IDirect3DSwapChain9 **swapchain) … … 746 746 } 747 747 748 #ifdef VBOX WDDM748 #ifdef VBOX_WITH_WDDM 749 749 //#pragma comment(linker, "/export:VBoxWineExD3DDev9Flush=_VBoxWineExD3DDev9Flush@4") 750 750 … … 815 815 D3DPOOL pool, IDirect3DTexture9 **texture, HANDLE *shared_handle) 816 816 { 817 #ifdef VBOX WDDM817 #ifdef VBOX_WITH_WDDM 818 818 return VBoxWineExD3DDev9CreateTexture(iface, width, height, levels, usage, format, 819 819 pool, texture, shared_handle, NULL); … … 979 979 D3DFORMAT Format, BOOL Lockable, BOOL Discard, UINT Level, IDirect3DSurface9 **ppSurface, 980 980 UINT Usage, D3DPOOL Pool, D3DMULTISAMPLE_TYPE MultiSample, DWORD MultisampleQuality 981 #ifdef VBOX WDDM981 #ifdef VBOX_WITH_WDDM 982 982 , HANDLE *shared_handle 983 983 , void *pvClientMem … … 1003 1003 hr = surface_init(object, This, Width, Height, Format, Lockable, Discard, 1004 1004 Level, Usage, Pool, MultiSample, MultisampleQuality 1005 #ifdef VBOX WDDM1005 #ifdef VBOX_WITH_WDDM 1006 1006 , shared_handle 1007 1007 , pvClientMem … … 1034 1034 hr = IDirect3DDevice9Impl_CreateSurface(iface, Width, Height, Format, Lockable, FALSE /* Discard */, 1035 1035 0 /* Level */, ppSurface, D3DUSAGE_RENDERTARGET, D3DPOOL_DEFAULT, MultiSample, MultisampleQuality 1036 #ifdef VBOX WDDM1036 #ifdef VBOX_WITH_WDDM 1037 1037 , pSharedHandle 1038 1038 , NULL … … 1056 1056 hr = IDirect3DDevice9Impl_CreateSurface(iface, Width, Height, Format, TRUE /* Lockable */, Discard, 1057 1057 0 /* Level */, ppSurface, D3DUSAGE_DEPTHSTENCIL, D3DPOOL_DEFAULT, MultiSample, MultisampleQuality 1058 #ifdef VBOX WDDM1058 #ifdef VBOX_WITH_WDDM 1059 1059 , pSharedHandle 1060 1060 , NULL … … 1196 1196 0 /* Level */, ppSurface, 0 /* Usage (undefined/none) */, (WINED3DPOOL)Pool, D3DMULTISAMPLE_NONE, 1197 1197 0 /* MultisampleQuality */ 1198 #ifdef VBOX WDDM1198 #ifdef VBOX_WITH_WDDM 1199 1199 , pSharedHandle 1200 1200 , NULL … … 2759 2759 IUnknown *superior, UINT width, UINT height, WINED3DFORMAT format, DWORD usage, 2760 2760 WINED3DPOOL pool, UINT level, WINED3DCUBEMAP_FACES face, IWineD3DSurface **surface 2761 #ifdef VBOX WDDM2761 #ifdef VBOX_WITH_WDDM 2762 2762 , HANDLE *shared_handle 2763 2763 , void *pvClientMem … … 2780 2780 d3dformat_from_wined3dformat(format), lockable, FALSE /* Discard */, level, 2781 2781 (IDirect3DSurface9 **)&d3d_surface, usage, pool, D3DMULTISAMPLE_NONE, 0 /* MultisampleQuality */ 2782 #ifdef VBOX WDDM2782 #ifdef VBOX_WITH_WDDM 2783 2783 , shared_handle 2784 2784 , pvClientMem … … 2931 2931 local_parameters.PresentationInterval = present_parameters->PresentationInterval; 2932 2932 2933 #ifdef VBOX WDDM2933 #ifdef VBOX_WITH_WDDM 2934 2934 hr = IDirect3DDevice9Impl_DoCreateAdditionalSwapChain((IDirect3DDevice9Ex *)This, 2935 2935 &local_parameters, (IDirect3DSwapChain9 **)&d3d_swapchain); -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/surface.c
r30916 r32622 382 382 UINT width, UINT height, D3DFORMAT format, BOOL lockable, BOOL discard, UINT level, 383 383 DWORD usage, D3DPOOL pool, D3DMULTISAMPLE_TYPE multisample_type, DWORD multisample_quality 384 #ifdef VBOX WDDM384 #ifdef VBOX_WITH_WDDM 385 385 , HANDLE *shared_handle 386 386 , void *pvClientMem … … 417 417 418 418 wined3d_mutex_lock(); 419 #ifdef VBOX WDDM419 #ifdef VBOX_WITH_WDDM 420 420 hr = IWineD3DDevice_CreateSurface(device->WineD3DDevice, width, height, wined3dformat_from_d3dformat(format), 421 421 lockable, discard, level, &surface->wineD3DSurface, usage & WINED3DUSAGE_MASK, (WINED3DPOOL)pool, -
trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/texture.c
r30916 r32622 399 399 HRESULT texture_init(IDirect3DTexture9Impl *texture, IDirect3DDevice9Impl *device, 400 400 UINT width, UINT height, UINT levels, DWORD usage, D3DFORMAT format, D3DPOOL pool 401 #ifdef VBOX WDDM401 #ifdef VBOX_WITH_WDDM 402 402 , HANDLE *shared_handle 403 403 , void *pvClientMem … … 411 411 412 412 wined3d_mutex_lock(); 413 #ifdef VBOX WDDM413 #ifdef VBOX_WITH_WDDM 414 414 hr = IWineD3DDevice_CreateTexture(device->WineD3DDevice, width, height, levels, 415 415 usage & WINED3DUSAGE_MASK, wined3dformat_from_d3dformat(format), pool,
Note:
See TracChangeset
for help on using the changeset viewer.