Changeset 63017 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp
- Timestamp:
- Aug 4, 2016 11:02:57 PM (8 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp
r62522 r63017 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 62 61 if (!pD3D->hD3DLib) 63 62 { 64 DWORD winErr = GetLastError(); 63 DWORD winErr = GetLastError(); NOREF(winErr) 65 64 WARN((__FUNCTION__": LoadLibrary failed, winErr = (%d)", winErr)); 66 65 return E_FAIL; … … 1146 1145 } 1147 1146 1148 #if DEBUG1147 #ifdef DEBUG 1149 1148 vboxDispCheckCapsLevel(pCaps); 1150 1149 #endif … … 1202 1201 pCaps->MaxVertexW = 10000000000.f; /* Required by D3D feature level 9.3. */ 1203 1202 1204 #if DEBUG1203 #ifdef DEBUG 1205 1204 vboxDispCheckCapsLevel(pCaps); 1206 1205 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.h
r62522 r63017 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 23 22 #include <iprt/critsect.h> 24 23 #include <iprt/semaphore.h> 25 26 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap 27 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap 28 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap 29 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 30 # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap 31 # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap 32 # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap 33 # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap 34 # pragma warning(disable : 4163) 35 #include <D3D9.h> 36 # pragma warning(default : 4163) 37 # undef _InterlockedExchange 38 # undef _InterlockedExchangeAdd 39 # undef _InterlockedCompareExchange 40 # undef _InterlockedAddLargeStatistic 41 # undef _interlockedbittestandset 42 # undef _interlockedbittestandreset 43 # undef _interlockedbittestandset64 44 # undef _interlockedbittestandreset64 45 24 #include <iprt/win/d3d9.h> 46 25 #include "../../../Wine_new/vbox/VBoxWineEx.h" 47 26 … … 103 82 } VBOXWDDMDISP_D3D, *PVBOXWDDMDISP_D3D; 104 83 105 void VBoxDispD3DGlobalInit( );106 void VBoxDispD3DGlobalTerm( );84 void VBoxDispD3DGlobalInit(void); 85 void VBoxDispD3DGlobalTerm(void); 107 86 HRESULT VBoxDispD3DGlobalOpen(PVBOXWDDMDISP_D3D pD3D, PVBOXWDDMDISP_FORMATS pFormats); 108 87 void VBoxDispD3DGlobalClose(PVBOXWDDMDISP_D3D pD3D, PVBOXWDDMDISP_FORMATS pFormats); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiBase.h
r62679 r63017 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 89 88 #define VBOXUHGSMDXALLOCBASE_GET_BUFFER(_p) VBOXUHGSMIPRIVATEBASE_GET_PRIVATE(_p, VBOXUHGSMI_BUFFER_PRIVATE_DX_ALLOC_BASE) 90 89 91 DECLINLINE(int) vboxUhgsmiBaseDxLockData(PVBOXUHGSMI_BUFFER_PRIVATE_DX_ALLOC_BASE pPrivate, uint32_t offLock, uint32_t cbLock, VBOXUHGSMI_BUFFER_LOCK_FLAGS fFlags,92 D3DDDICB_LOCKFLAGS *pfFlags, UINT *pNumPages)90 DECLINLINE(int) vboxUhgsmiBaseDxLockData(PVBOXUHGSMI_BUFFER_PRIVATE_DX_ALLOC_BASE pPrivate, uint32_t offLock, uint32_t cbLock, 91 VBOXUHGSMI_BUFFER_LOCK_FLAGS fFlags, D3DDDICB_LOCKFLAGS *pfFlags, UINT *pNumPages) 93 92 { 94 93 PVBOXUHGSMI_BUFFER pBuf = &pPrivate->BasePrivate.Base; … … 143 142 } 144 143 145 DECLINLINE(void) vboxUhgsmiBaseDxAllocInfoFill(D3DDDI_ALLOCATIONINFO *pDdiAllocInfo, VBOXWDDM_ALLOCINFO *pAllocInfo, uint32_t cbBuffer, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType) 144 DECLINLINE(void) vboxUhgsmiBaseDxAllocInfoFill(D3DDDI_ALLOCATIONINFO *pDdiAllocInfo, VBOXWDDM_ALLOCINFO *pAllocInfo, 145 uint32_t cbBuffer, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType) 146 146 { 147 147 memset(pDdiAllocInfo, 0, sizeof (*pDdiAllocInfo)); … … 155 155 156 156 DECLINLINE(int) vboxUhgsmiBaseDxDmaFill(PVBOXUHGSMI_BUFFER_SUBMIT aBuffers, uint32_t cBuffers, 157 VOID*pCommandBuffer, UINT *pCommandBufferSize,158 D3DDDI_ALLOCATIONLIST *pAllocationList, UINT AllocationListSize,159 D3DDDI_PATCHLOCATIONLIST *pPatchLocationList, UINT PatchLocationListSize)157 VOID *pCommandBuffer, UINT *pCommandBufferSize, 158 D3DDDI_ALLOCATIONLIST *pAllocationList, UINT AllocationListSize, 159 D3DDDI_PATCHLOCATIONLIST *pPatchLocationList, UINT PatchLocationListSize) 160 160 { 161 161 const uint32_t cbDmaCmd = RT_OFFSETOF(VBOXWDDM_DMA_PRIVATEDATA_UM_CHROMIUM_CMD, aBufInfos[cBuffers]); … … 215 215 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferDestroy(PVBOXUHGSMI_BUFFER pBuf); 216 216 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferCreate(PVBOXUHGSMI pHgsmi, uint32_t cbBuf, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType, PVBOXUHGSMI_BUFFER* ppBuf); 217 217 218 DECLINLINE(void) vboxUhgsmiBaseInit(PVBOXUHGSMI_PRIVATE_BASE pHgsmi, PFNVBOXCRHGSMI_ESCAPE pfnEscape) 218 219 {
Note:
See TracChangeset
for help on using the changeset viewer.