Changeset 36046 in vbox
- Timestamp:
- Feb 21, 2011 5:19:32 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp
r34917 r36046 38 38 HRESULT vboxDispCmSessionTerm(PVBOXDISPCM_SESSION pSession) 39 39 { 40 #ifdef DEBUG_misha 40 41 Assert(RTListIsEmpty(&pSession->CtxList)); 42 #endif 41 43 BOOL bRc = CloseHandle(pSession->hEvent); 42 44 Assert(bRc); -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r35650 r36046 1635 1635 DdiEscape.PrivateDriverDataSize = RT_OFFSETOF(VBOXDISPIFESCAPE_SWAPCHAININFO, SwapchainInfo.ahAllocs[Buf.SwapchainInfo.SwapchainInfo.cAllocs]); 1636 1636 HRESULT hr = pDevice->RtCallbacks.pfnEscapeCb(pDevice->pAdapter->hAdapter, &DdiEscape); 1637 #ifdef DEBUG_misha 1637 1638 Assert(hr == S_OK); 1639 #endif 1638 1640 if (hr == S_OK) 1639 1641 { -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispDbg.cpp
r35658 r36046 67 67 PVBOXDISPDBG vboxDispDbgGet() 68 68 { 69 if (ASMAtomicCmpXchgU32((volatile uint32_t *) g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_UNINITIALIZED, VBOXDISPDBG_STATE_INITIALIZING))69 if (ASMAtomicCmpXchgU32((volatile uint32_t *)&g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_INITIALIZING, VBOXDISPDBG_STATE_UNINITIALIZED)) 70 70 { 71 71 HRESULT hr = vboxDispKmtCallbacksInit(&g_VBoxDispDbg.KmtCallbacks); … … 73 73 if (hr == S_OK) 74 74 { 75 ASMAtomicWriteU32((volatile uint32_t *) g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_INITIALIZED);75 ASMAtomicWriteU32((volatile uint32_t *)&g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_INITIALIZED); 76 76 return &g_VBoxDispDbg; 77 77 } 78 78 else 79 79 { 80 ASMAtomicWriteU32((volatile uint32_t *) g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_UNINITIALIZED);81 } 82 } 83 else if (ASMAtomicReadU32((volatile uint32_t *) g_VBoxDispDbg.enmState) == VBOXDISPDBG_STATE_INITIALIZED)80 ASMAtomicWriteU32((volatile uint32_t *)&g_VBoxDispDbg.enmState, VBOXDISPDBG_STATE_UNINITIALIZED); 81 } 82 } 83 else if (ASMAtomicReadU32((volatile uint32_t *)&g_VBoxDispDbg.enmState) == VBOXDISPDBG_STATE_INITIALIZED) 84 84 { 85 85 return &g_VBoxDispDbg; … … 141 141 vboxDispLogDrv(szBuffer); 142 142 } 143 144 void vboxDispLogDbgPrintF(char * szString, ...) 145 { 146 char szBuffer[4096] = {0}; 147 va_list pArgList; 148 va_start(pArgList, szString); 149 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList); 150 va_end(pArgList); 151 152 OutputDebugStringA(szBuffer); 153 } 154 143 155 144 156 VOID vboxVDbgDoDumpSurfRectByAlloc(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispDbg.h
r35658 r36046 25 25 * the workaround so far is to pass the log info to the kernel driver and DbgPrint'ed from there, 26 26 * which is enabled by this define */ 27 //# define VBOXWDDMDISP_DEBUG_PRINTDRV 27 # define VBOXWDDMDISP_DEBUG_PRINTDRV 28 /* use OutputDebugString */ 29 # define VBOXWDDMDISP_DEBUG_PRINT 28 30 /* adds vectored exception handler to be able to catch non-debug UM exceptions in kernel debugger */ 29 31 # define VBOXWDDMDISP_DEBUG_VEHANDLER … … 60 62 # define DbgPrintDrvFlow(_m) do { } while (0) 61 63 #endif 64 65 #ifdef VBOXWDDMDISP_DEBUG_PRINT 66 # define DbgPrintUsr(_m) do { vboxDispLogDbgPrintF _m; } while (0) 67 # define DbgPrintUsrRel(_m) do { vboxDispLogDbgPrintF _m; } while (0) 68 # define DbgPrintUsrFlow(_m) do { } while (0) 69 #else 70 # define DbgPrintUsr(_m) do { } while (0) 71 # define DbgPrintUsrRel(_m) do { } while (0) 72 # define DbgPrintUsrFlow(_m) do { } while (0) 73 #endif 62 74 #define vboxVDbgPrint(_m) do { \ 63 75 Log(_m); \ 76 DbgPrintUsr(_m); \ 64 77 DbgPrintDrv(_m); \ 65 78 } while (0) 66 79 #define vboxVDbgPrintF(_m) do { \ 67 80 LogFlow(_m); \ 81 DbgPrintUsrFlow(_m); \ 68 82 DbgPrintDrvFlow(_m); \ 69 83 } while (0) 70 84 #define vboxVDbgPrintR(_m) do { \ 71 85 LogRel(_m); \ 86 DbgPrintUsrRel(_m); \ 72 87 DbgPrintDrvRel(_m); \ 73 88 } while (0) … … 81 96 void vboxDispLogDrvF(char * szString, ...); 82 97 void vboxDispLogDrv(char * szString); 98 void vboxDispLogDbgPrintF(char * szString, ...); 83 99 84 100 typedef struct VBOXWDDMDISP_ALLOCATION *PVBOXWDDMDISP_ALLOCATION; -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVdma.cpp
r34387 r36046 1540 1540 { 1541 1541 PVBOXVDMADDI_CMD_COMPLETED_CB pdc = (PVBOXVDMADDI_CMD_COMPLETED_CB)Context; 1542 BOOLEAN bNeedDp s= vboxVdmaDdiCmdCompletedIrq(pdc->pDevExt, pdc->pQueue, pdc->pCmd, pdc->enmComplType);1543 pdc->pDevExt->bNotifyDxDpc |= bNeedDp s;1544 1545 return bNeedDp s;1542 BOOLEAN bNeedDpc = vboxVdmaDdiCmdCompletedIrq(pdc->pDevExt, pdc->pQueue, pdc->pCmd, pdc->enmComplType); 1543 pdc->pDevExt->bNotifyDxDpc |= bNeedDpc; 1544 1545 return bNeedDpc; 1546 1546 } 1547 1547 -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r35319 r36046 2422 2422 VBOXVDMAPIPE_FLAGS_DMACMD fBltFlags; 2423 2423 fBltFlags.Value = 0; 2424 if (!vboxVhwaHlpOverlayListIsEmpty(pDevExt, pDstAlloc->SurfDesc.VidPnSourceId)) 2424 if (pDstAlloc->SurfDesc.VidPnSourceId != D3DDDI_ID_UNINITIALIZED && 2425 !vboxVhwaHlpOverlayListIsEmpty(pDevExt, pDstAlloc->SurfDesc.VidPnSourceId)) 2425 2426 { 2426 2427 fBltFlags.b2DRelated = 1;
Note:
See TracChangeset
for help on using the changeset viewer.