儲存庫 vbox 的更動 63033
- 時間撮記:
- 2016-8-5 上午11:19:40 (8 年 以前)
- 位置:
- trunk/src/VBox/Additions/WINNT/Graphics/Video
- 檔案:
-
- 修改 8 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/common/VBoxVideoLog.h
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox Video drivers, logging helper -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispCm.cpp
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 91 90 void vboxDispCmSessionCtxRemoveLocked(PVBOXDISPCM_SESSION pSession, PVBOXWDDMDISP_CONTEXT pContext) 92 91 { 92 RT_NOREF(pSession); 93 93 RTListNodeRemove(&pContext->ListNode); 94 94 } … … 138 138 fIsCrContext = FALSE; 139 139 } 140 Info.hUmEvent = (uint 64_t)g_pVBoxCmMgr.Session.hEvent;141 Info.u64UmInfo = (uint 64_t)pContext;140 Info.hUmEvent = (uintptr_t)g_pVBoxCmMgr.Session.hEvent; 141 Info.u64UmInfo = (uintptr_t)pContext; 142 142 143 143 if (VBOXDISPMODE_IS_3D(pDevice->pAdapter)) … … 330 330 void vboxDispCmLog(LPCSTR pszMsg) 331 331 { 332 RT_NOREF(pszMsg); 332 333 PVBOXDISPCM_SESSION pSession = &g_pVBoxCmMgr.Session; 333 334 … … 338 339 if (pContext) 339 340 { 340 PVBOXWDDMDISP_DEVICE pDevice = pContext->pDevice; 341 Assert(pDevice); 341 Assert(pContext->pDevice); 342 342 vboxVDbgPrint(("%s", pszMsg)); 343 343 } -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DBase.h
r62679 r63033 15 15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. 16 16 */ 17 #ifndef __VBoxDispD3DBase_h_18 #define __VBoxDispD3DBase_h_19 17 20 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap 21 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap 22 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap 23 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap 24 # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap 25 # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap 26 # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap 27 # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap 28 # pragma warning(disable : 4163) 29 #include <iprt/win/windows.h> 30 # pragma warning(default : 4163) 31 # undef _InterlockedExchange 32 # undef _InterlockedExchangeAdd 33 # undef _InterlockedCompareExchange 34 # undef _InterlockedAddLargeStatistic 35 # undef _interlockedbittestandset 36 # undef _interlockedbittestandreset 37 # undef _interlockedbittestandset64 38 # undef _interlockedbittestandreset64 18 #ifndef ___VBoxDispD3DBase_h 19 #define ___VBoxDispD3DBase_h 20 21 /* Include nt-and-windows.h here so we get NT_SUCCESS, but don't try if 22 something windowsy is already included because that'll cause conflicts. */ 23 #ifndef STATUS_WAIT_0 24 # include <iprt/nt/nt-and-windows.h> 25 #endif 39 26 40 27 #include <d3d9types.h> … … 43 30 #include <d3dhal.h> 44 31 32 #endif 45 33 46 #endif /* #ifndef __VBoxDispD3DBase_h_ */ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispDbg.cpp
r62679 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 17 16 */ 18 17 19 /* @todo: move this to VBoxDispD3DCmn.h ? */20 # if (_MSC_VER >= 1400) && !defined(VBOX_WITH_PATCHED_DDK)21 # define _InterlockedExchange _InterlockedExchange_StupidDDKVsCompilerCrap22 # define _InterlockedExchangeAdd _InterlockedExchangeAdd_StupidDDKVsCompilerCrap23 # define _InterlockedCompareExchange _InterlockedCompareExchange_StupidDDKVsCompilerCrap24 # define _InterlockedAddLargeStatistic _InterlockedAddLargeStatistic_StupidDDKVsCompilerCrap25 # define _interlockedbittestandset _interlockedbittestandset_StupidDDKVsCompilerCrap26 # define _interlockedbittestandreset _interlockedbittestandreset_StupidDDKVsCompilerCrap27 # define _interlockedbittestandset64 _interlockedbittestandset64_StupidDDKVsCompilerCrap28 # define _interlockedbittestandreset64 _interlockedbittestandreset64_StupidDDKVsCompilerCrap29 # pragma warning(disable : 4163)30 # include <iprt/win/windows.h>31 # pragma warning(default : 4163)32 # undef _InterlockedExchange33 # undef _InterlockedExchangeAdd34 # undef _InterlockedCompareExchange35 # undef _InterlockedAddLargeStatistic36 # undef _interlockedbittestandset37 # undef _interlockedbittestandreset38 # undef _interlockedbittestandset6439 # undef _interlockedbittestandreset6440 # else41 # include <iprt/win/windows.h>42 # endif43 44 18 #include "VBoxDispD3DCmn.h" 45 19 … … 60 34 if (!cName) 61 35 { 36 #ifdef LOG_ENABLED 62 37 DWORD winEr = GetLastError(); 38 #endif 63 39 WARN(("GetModuleFileNameA failed, winEr %d", winEr)); 64 40 return NULL; … … 225 201 static DECLCALLBACK(void) vboxVDbgAllocRectContentsDumperCb(PVBOXVDBG_DUMP_INFO pInfo, BOOLEAN fBreak, void *pvDumper) 226 202 { 203 RT_NOREF(fBreak, pvDumper); 227 204 const VBOXWDDMDISP_ALLOCATION *pAlloc = pInfo->pAlloc; 228 205 const RECT *pRect = pInfo->pRect; … … 280 257 static DECLCALLBACK(void) vboxVDbgRcRectContentsDumperCb(PVBOXVDBG_DUMP_INFO pInfo, BOOLEAN fBreak, void *pvDumper) 281 258 { 259 RT_NOREF(pvDumper); 282 260 const VBOXWDDMDISP_ALLOCATION *pAlloc = pInfo->pAlloc; 283 IDirect3DResource9 *pD3DRc = pInfo->pD3DRc;284 261 const RECT *pRect = pInfo->pRect; 285 262 IDirect3DSurface9 *pSurf; … … 353 330 { 354 331 IDirect3DSurface9 *pBb = NULL; 355 HRESULT hr = pSwapchainIf->GetBackBuffer( -1, D3DBACKBUFFER_TYPE_MONO, &pBb);332 HRESULT hr = pSwapchainIf->GetBackBuffer(~(UINT)0, D3DBACKBUFFER_TYPE_MONO, &pBb); 356 333 Assert(hr == S_OK); 357 334 if (FAILED(hr)) … … 426 403 static DECLCALLBACK(void) vboxVDbgLockUnlockSurfTexContentsDumperCb(PVBOXVDBG_DUMP_INFO pInfo, BOOLEAN fBreak, void *pvDumper) 427 404 { 405 RT_NOREF(pvDumper); 428 406 const VBOXWDDMDISP_ALLOCATION *pAlloc = pInfo->pAlloc; 429 407 const RECT *pRect = pInfo->pRect; … … 660 638 static VOID CALLBACK vboxVDbgTimerCb(__in PVOID lpParameter, __in BOOLEAN TimerOrWaitFired) 661 639 { 640 RT_NOREF(lpParameter, TimerOrWaitFired); 662 641 Assert(0); 663 642 } … … 696 675 if (!pszModule) 697 676 return FALSE; 698 DWORDcbModule, cbName;677 size_t cbModule, cbName; 699 678 cbModule = strlen(pszModule); 700 679 cbName = strlen(pszName); -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispKmt.cpp
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 * VBoxVideo Display D3D User mode dll3 * VBoxVideo Display D3D User Mode Dll. 5 4 */ 6 5 … … 23 22 #include <iprt/log.h> 24 23 25 #ifndef NT_SUCCESS26 # define NT_SUCCESS(_Status) ((_Status) >= 0)27 #endif28 24 29 25 /** … … 382 378 Info.crVersionMajor = crVersionMajor; 383 379 Info.crVersionMinor = crVersionMinor; 384 Info.hUmEvent = (uint 64_t)hEvent;380 Info.hUmEvent = (uintptr_t)hEvent; 385 381 Info.u64UmInfo = u64UmInfo; 386 382 D3DKMT_CREATECONTEXT ContextData = {0}; -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxUhgsmiBase.cpp
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBoxVideo Display D3D User mode dll … … 19 18 #include "VBoxDispD3DCmn.h" 20 19 21 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferLock(PVBOXUHGSMI_BUFFER pBuf, uint32_t offLock, uint32_t cbLock, VBOXUHGSMI_BUFFER_LOCK_FLAGS fFlags, void**pvLock) 22 { 20 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferLock(PVBOXUHGSMI_BUFFER pBuf, uint32_t offLock, uint32_t cbLock, 21 VBOXUHGSMI_BUFFER_LOCK_FLAGS fFlags, void**pvLock) 22 { 23 RT_NOREF(cbLock, fFlags); 23 24 PVBOXUHGSMI_BUFFER_PRIVATE_ESC_BASE pBuffer = VBOXUHGSMIESCBASE_GET_BUFFER(pBuf); 24 25 *pvLock = (void*)(pBuffer->Alloc.pvData + offLock); … … 28 29 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferUnlock(PVBOXUHGSMI_BUFFER pBuf) 29 30 { 31 RT_NOREF(pBuf); 30 32 return VINF_SUCCESS; 31 33 } … … 55 57 if (!*phSynch) 56 58 { 57 DWORD winEr = GetLastError();59 /*DWORD winEr = GetLastError(); - unused */ 58 60 /* todo: translate winer */ 59 61 return VERR_GENERAL_FAILURE; … … 63 65 } 64 66 65 int vboxUhgsmiKmtEscBufferInit(PVBOXUHGSMI_PRIVATE_BASE pPrivate, PVBOXUHGSMI_BUFFER_PRIVATE_ESC_BASE pBuffer, uint32_t cbBuf, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType, PFNVBOXUHGSMI_BUFFER_DESTROY pfnDestroy) 67 int vboxUhgsmiKmtEscBufferInit(PVBOXUHGSMI_PRIVATE_BASE pPrivate, PVBOXUHGSMI_BUFFER_PRIVATE_ESC_BASE pBuffer, uint32_t cbBuf, 68 VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType, PFNVBOXUHGSMI_BUFFER_DESTROY pfnDestroy) 66 69 { 67 70 HANDLE hSynch = NULL; … … 78 81 cbBuf = VBOXWDDM_ROUNDBOUND(cbBuf, 0x1000); 79 82 Assert(cbBuf); 83 #ifdef VBOX_STRICT 80 84 uint32_t cPages = cbBuf >> 12; 81 85 Assert(cPages); 86 #endif 82 87 83 88 VBOXDISPIFESCAPE_UHGSMI_ALLOCATE AllocInfo = {0}; 84 89 AllocInfo.EscapeHdr.escapeCode = VBOXESC_UHGSMI_ALLOCATE; 85 90 AllocInfo.Alloc.cbData = cbBuf; 86 AllocInfo.Alloc.hSynch = (uint 64_t)hSynch;91 AllocInfo.Alloc.hSynch = (uintptr_t)hSynch; 87 92 AllocInfo.Alloc.fUhgsmiType = fUhgsmiType; 88 93 … … 122 127 } 123 128 124 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferCreate(PVBOXUHGSMI pHgsmi, uint32_t cbBuf, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType, PVBOXUHGSMI_BUFFER* ppBuf) 129 DECLCALLBACK(int) vboxUhgsmiBaseEscBufferCreate(PVBOXUHGSMI pHgsmi, uint32_t cbBuf, VBOXUHGSMI_BUFFER_TYPE_FLAGS fUhgsmiType, 130 PVBOXUHGSMI_BUFFER* ppBuf) 125 131 { 126 132 *ppBuf = NULL; … … 190 196 } 191 197 192 int rc = vboxCrHgsmiPrivateEscape(pPrivate, &Buf.SubmitInfo, RT_OFFSETOF(VBOXDISPIFESCAPE_UHGSMI_SUBMIT, aBuffers[cBuffers]), FALSE); 198 int rc = vboxCrHgsmiPrivateEscape(pPrivate, &Buf.SubmitInfo, RT_OFFSETOF(VBOXDISPIFESCAPE_UHGSMI_SUBMIT, aBuffers[cBuffers]), 199 FALSE); 193 200 if (RT_SUCCESS(rc)) 194 201 { -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispInternal.h
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox XPDM Display driver, internal header … … 25 24 #include <iprt/err.h> 26 25 #include <iprt/assert.h> 27 #include < windef.h>26 #include <iprt/win/windef.h> 28 27 #include <wingdi.h> 29 28 #include <winddi.h> -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/xpdm/VBoxDispVBVA.cpp
r62522 r63033 1 1 /* $Id$ */ 2 3 2 /** @file 4 3 * VBox XPDM Display driver
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器