Changeset 34848 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Display
- Timestamp:
- Dec 8, 2010 8:35:20 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68661
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Display
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r34801 r34848 74 74 VBoxDispD3D_NAME.amd64 = VBoxDispD3D64 75 75 VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL 76 VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP 76 VBoxDispD3D_DEFS = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR 77 ifdef DEBUG_misha 78 VBoxDispD3D_DEFS += LOG_ENABLED 79 endif 80 77 81 # VBoxDispD3D_DEFS += VBOXDISPMP_TEST 78 82 ifdef VBOXWDDM_WITH_VBVA -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp
r34406 r34848 272 272 PVBOXWDDMDISP_DEVICE pDevice = pContext->pDevice; 273 273 Assert(pDevice); 274 vboxVDbg MpPrint((pDevice, pszMsg));275 } 276 LeaveCriticalSection(&pSession->CritSect); 277 } 274 vboxVDbgPrint(("%s", pszMsg)); 275 } 276 LeaveCriticalSection(&pSession->CritSect); 277 } -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r34406 r34848 2949 2949 vboxVDbgVEHandlerRegister(); 2950 2950 #endif 2951 RTR3Init(); 2952 2953 HRESULT hr = vboxDispCmInit(); 2954 Assert(hr == S_OK); 2955 if (hr == S_OK) 2956 { 2957 #ifdef VBOXDISPMP_TEST 2958 hr = vboxDispMpTstStart(); 2959 Assert(hr == S_OK); 2960 if (hr == S_OK) 2961 #endif 2962 { 2963 // hr = VBoxScreenMRunnerStart(&g_VBoxScreenMonRunner); 2964 // Assert(hr == S_OK); 2965 /* succeed in any way */ 2966 hr = S_OK; 2951 int rc = RTR3Init(); 2952 AssertRC(rc); 2953 if (RT_SUCCESS(rc)) 2954 { 2955 rc = VbglR3Init(); 2956 AssertRC(rc); 2957 if (RT_SUCCESS(rc)) 2958 { 2959 HRESULT hr = vboxDispCmInit(); 2960 Assert(hr == S_OK); 2967 2961 if (hr == S_OK) 2968 2962 { … … 2970 2964 return TRUE; 2971 2965 } 2972 #ifdef VBOXDISPMP_TEST 2973 vboxDispMpTstStop(); 2974 #endif 2966 VbglR3Term(); 2975 2967 } 2976 vboxDispCmTerm(); 2977 } 2978 // VbglR3Init(); 2968 } 2979 2969 break; 2980 2970 } … … 2985 2975 vboxVDbgVEHandlerUnregister(); 2986 2976 #endif 2987 HRESULT hr = S_OK; 2988 // hr = VBoxScreenMRunnerStop(&g_VBoxScreenMonRunner); 2989 // Assert(hr == S_OK); 2990 // if (hr == S_OK) 2991 { 2992 #ifdef VBOXDISPMP_TEST 2993 hr = vboxDispMpTstStop(); 2994 Assert(hr == S_OK); 2995 if (hr == S_OK) 2996 #endif 2997 { 2998 hr = vboxDispCmTerm(); 2999 Assert(hr == S_OK); 3000 if (hr == S_OK) 3001 { 3002 vboxVDbgPrint(("VBoxDispD3D: DLL unloaded.\n")); 3003 return TRUE; 3004 } 3005 } 3006 } 3007 // VbglR3Term(); 3008 /// @todo RTR3Term(); 2977 HRESULT hr = vboxDispCmTerm(); 2978 Assert(hr == S_OK); 2979 if (hr == S_OK) 2980 { 2981 VbglR3Term(); 2982 /// @todo RTR3Term(); 2983 return TRUE; 2984 } 2985 3009 2986 break; 3010 2987 } … … 3436 3413 pD3DIfTex = (IDirect3DTexture9*)pRc->aAllocations[0].pD3DIf; 3437 3414 #ifdef DEBUG_misha 3438 bool bDo = false; 3415 /* this proved to be the easiest way of detecting blit issues with WinDbg 3416 * this is why I'd keep this test here to be able to switch it on at runtime any time needed */ 3417 static bool bDo = false; 3439 3418 3440 3419 if (bDo) 3441 3420 { 3442 vboxVDbgDumpSurfData((pDevice, "SetTexture:\n", pRc, 0 /* alloc index*/, NULL, NULL, "\n"));3421 vboxVDbgDoDumpSurfData("SetTexture:\n", pRc, 0 /* alloc index*/, NULL, NULL, "\n"); 3443 3422 } 3444 3423 #endif … … 4086 4065 4087 4066 #ifdef DEBUG_misha 4088 bool bDo = false; 4089 IDirect3DSurface9 *pTstSrcSurfIf = NULL; 4090 IDirect3DSurface9 *pTstDstSurfIf = NULL; 4091 4092 if (g_VDbgTstDumpEnable) 4093 { 4094 hr = vboxWddmSurfGet(pSrcRc, 0, &pTstSrcSurfIf); 4095 Assert(hr == S_OK); 4096 hr = vboxWddmSurfGet(pDstRc, 0, &pTstDstSurfIf); 4097 Assert(hr == S_OK); 4098 4099 if (g_VDbgTstDumpOnSys2VidSameSizeEnable) 4100 { 4101 if (pDstRc->RcDesc.enmPool != D3DDDIPOOL_SYSTEMMEM 4102 && pSrcRc->RcDesc.enmPool == D3DDDIPOOL_SYSTEMMEM) 4103 { 4104 D3DSURFACE_DESC SrcDesc; 4105 HRESULT hr = pTstSrcSurfIf->GetDesc(&SrcDesc); 4106 Assert(hr == S_OK); 4107 if (hr == S_OK) 4108 { 4109 D3DSURFACE_DESC DstDesc; 4110 hr = pTstDstSurfIf->GetDesc(&DstDesc); 4111 Assert(hr == S_OK); 4112 if (hr == S_OK) 4113 { 4114 if (SrcDesc.Width == DstDesc.Width 4115 && SrcDesc.Height == DstDesc.Height) 4116 { 4117 bDo = true; 4118 } 4119 } 4120 } 4121 } 4122 } 4123 } 4124 4125 if (bDo) 4126 { 4127 RECT DstRect; 4128 vboxWddmRectMoved(&DstRect, &pData->SrcRect, pData->DstPoint.x, pData->DstPoint.y); 4129 vboxVDbgDumpSurfData((pDevice, "TexBlt-pre Src:\n", pSrcRc, 0, &pData->SrcRect, pTstSrcSurfIf, "\n")); 4130 vboxVDbgDumpSurfData((pDevice, "TexBlt-pre Dst:\n", pDstRc, 0, &DstRect, pTstDstSurfIf, "\n")); 4131 } 4067 /* this proved to be the easiest way of detecting blit issues with WinDbg 4068 * this is why I'd keep this test here to be able to switch it on at runtime any time needed */ 4069 static bool bDo = false; 4070 IDirect3DSurface9 *pTstSrcSurfIf = NULL; 4071 IDirect3DSurface9 *pTstDstSurfIf = NULL; 4072 4073 if (bDo) 4074 { 4075 RECT DstRect; 4076 hr = vboxWddmSurfGet(pSrcRc, 0, &pTstSrcSurfIf); 4077 Assert(hr == S_OK); 4078 hr = vboxWddmSurfGet(pDstRc, 0, &pTstDstSurfIf); 4079 Assert(hr == S_OK); 4080 4081 vboxWddmRectMoved(&DstRect, &pData->SrcRect, pData->DstPoint.x, pData->DstPoint.y); 4082 vboxVDbgDoDumpSurfData("TexBlt-pre Src:\n", pSrcRc, 0, &pData->SrcRect, pTstSrcSurfIf, "\n"); 4083 vboxVDbgDoDumpSurfData("TexBlt-pre Dst:\n", pDstRc, 0, &DstRect, pTstDstSurfIf, "\n"); 4084 } 4132 4085 #endif 4133 4086 … … 4178 4131 4179 4132 #ifdef DEBUG_misha 4133 /* this proved to be the easiest way of detecting blit issues with WinDbg 4134 * this is why I'd keep this test here to be able to switch it on at runtime any time needed */ 4135 4180 4136 if (bDo) 4181 4137 { 4182 4138 RECT DstRect; 4183 4139 vboxWddmRectMoved(&DstRect, &pData->SrcRect, pData->DstPoint.x, pData->DstPoint.y); 4184 vboxVDbgD umpSurfData((pDevice, "TexBlt-post Src:\n", pSrcRc, 0, &pData->SrcRect, pTstSrcSurfIf, "\n"));4185 vboxVDbgD umpSurfData((pDevice, "TexBlt-post Dst:\n", pDstRc, 0, &DstRect, pTstDstSurfIf, "\n"));4140 vboxVDbgDoDumpSurfData("TexBlt-post Src:\n", pSrcRc, 0, &pData->SrcRect, pTstSrcSurfIf, "\n"); 4141 vboxVDbgDoDumpSurfData("TexBlt-post Dst:\n", pDstRc, 0, &DstRect, pTstDstSurfIf, "\n"); 4186 4142 } 4187 4143 … … 6571 6527 Assert(pSrcSurfIf); 6572 6528 #ifdef DEBUG_misha 6573 bool bDo = false; 6574 6575 if (g_VDbgTstDumpEnable) 6576 { 6577 if (g_VDbgTstDumpOnSys2VidSameSizeEnable) 6578 { 6579 if (pDstRc->RcDesc.enmPool != D3DDDIPOOL_SYSTEMMEM 6580 && pSrcRc->RcDesc.enmPool == D3DDDIPOOL_SYSTEMMEM) 6581 { 6582 D3DSURFACE_DESC SrcDesc; 6583 HRESULT hr = pSrcSurfIf->GetDesc(&SrcDesc); 6584 Assert(hr == S_OK); 6585 if (hr == S_OK) 6586 { 6587 D3DSURFACE_DESC DstDesc; 6588 hr = pDstSurfIf->GetDesc(&DstDesc); 6589 Assert(hr == S_OK); 6590 if (hr == S_OK) 6591 { 6592 if (SrcDesc.Width == DstDesc.Width 6593 && SrcDesc.Height == DstDesc.Height) 6594 { 6595 bDo = true; 6596 } 6597 } 6598 } 6599 } 6600 } 6601 } 6529 /* this proved to be the easiest way of detecting blit issues with WinDbg 6530 * this is why I'd keep this test here to be able to switch it on at runtime any time needed */ 6531 static bool bDo = false; 6602 6532 6603 6533 if (bDo) 6604 6534 { 6605 vboxVDbgD umpSurfData((pDevice, "Blt-pre Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"));6606 vboxVDbgD umpSurfData((pDevice, "Blt-pre Dst:\n", pDstRc, pData->DstSubResourceIndex, &pData->DstRect, pDstSurfIf, "\n"));6535 vboxVDbgDoDumpSurfData("Blt-pre Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"); 6536 vboxVDbgDoDumpSurfData("Blt-pre Dst:\n", pDstRc, pData->DstSubResourceIndex, &pData->DstRect, pDstSurfIf, "\n"); 6607 6537 } 6608 6538 #endif … … 6617 6547 6618 6548 #ifdef DEBUG_misha 6549 /* this proved to be the easiest way of detecting blit issues with WinDbg 6550 * this is why I'd keep this test here to be able to switch it on at runtime any time needed */ 6619 6551 if (bDo) 6620 6552 { 6621 vboxVDbgD umpSurfData((pDevice, "Blt-post Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"));6622 vboxVDbgD umpSurfData((pDevice, "Blt-post Dst:\n", pDstRc, pData->DstSubResourceIndex, &pData->DstRect, pDstSurfIf, "\n"));6553 vboxVDbgDoDumpSurfData("Blt-post Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"); 6554 vboxVDbgDoDumpSurfData("Blt-post Dst:\n", pDstRc, pData->DstSubResourceIndex, &pData->DstRect, pDstSurfIf, "\n"); 6623 6555 } 6624 6556 #endif … … 7909 7841 vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter)); 7910 7842 7911 // Assert(0);7912 7913 7843 PVBOXWDDMDISP_ADAPTER pAdapter = (PVBOXWDDMDISP_ADAPTER)hAdapter; 7914 7844 if (VBOXDISPMODE_IS_3D(pAdapter)) … … 8136 8066 #ifdef VBOXWDDMDISP_DEBUG 8137 8067 8138 bool g_VDbgTstDumpEnable = false;8139 bool g_VDbgTstDumpOnSys2VidSameSizeEnable = false;8140 8141 8068 VOID vboxVDbgDoDumpAllocSurfData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix) 8142 8069 { 8143 8070 if (pPrefix) 8144 8071 { 8145 vboxVDbg MpPrintF((pDevice,"%s", pPrefix));8072 vboxVDbgPrint(("%s", pPrefix)); 8146 8073 } 8147 8074 … … 8151 8078 Assert(pRect->right > pRect->left); 8152 8079 Assert(pRect->bottom > pRect->top); 8153 vboxVDbg MpPrintRect((pDevice, "rect: ", pRect, "\n"));8080 vboxVDbgDoPrintRect("rect: ", pRect, "\n"); 8154 8081 } 8155 8082 … … 8161 8088 // Assert(bpp == pAlloc->SurfDesc.bpp); 8162 8089 // Assert(pAlloc->SurfDesc.pitch == Lr.Pitch); 8163 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n",8090 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n", 8164 8091 Lr.pBits, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, Lr.Pitch)); 8165 8092 if (pRect) 8166 8093 { 8167 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n",8094 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n", 8168 8095 ((uint8_t*)Lr.pBits) + (pRect->top * Lr.Pitch) + ((pRect->left * bpp) >> 3), 8169 8096 pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, Lr.Pitch)); … … 8176 8103 if (pSuffix) 8177 8104 { 8178 vboxVDbg MpPrintF((pDevice,"%s\n", pSuffix));8179 } 8180 } 8181 8182 VOID vboxVDbgDoDumpAllocData(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix)8105 vboxVDbgPrint(("%s\n", pSuffix)); 8106 } 8107 } 8108 8109 VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix) 8183 8110 { 8184 8111 if (pPrefix) 8185 8112 { 8186 vboxVDbg MpPrintF((pDevice,"%s", pPrefix));8113 vboxVDbgPrint(("%s", pPrefix)); 8187 8114 } 8188 8115 … … 8191 8118 Assert(pRect->right > pRect->left); 8192 8119 Assert(pRect->bottom > pRect->top); 8193 vboxVDbg MpPrintRect((pDevice, "rect: ", pRect, "\n"));8120 vboxVDbgDoPrintRect("rect: ", pRect, "\n"); 8194 8121 } 8195 8122 … … 8206 8133 LockData.Flags.ReadOnly = 1; 8207 8134 8135 PVBOXWDDMDISP_DEVICE pDevice = pAlloc->pRc->pDevice; 8136 8208 8137 HRESULT hr = pDevice->RtCallbacks.pfnLockCb(pDevice->hDevice, &LockData); 8209 8138 Assert(hr == S_OK); … … 8213 8142 // Assert(bpp == pAlloc->SurfDesc.bpp); 8214 8143 // Assert(pAlloc->SurfDesc.pitch == Lr.Pitch); 8215 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n",8144 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n", 8216 8145 LockData.pData, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, pAlloc->SurfDesc.pitch)); 8217 8146 if (pRect) 8218 8147 { 8219 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n",8148 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n", 8220 8149 ((uint8_t*)LockData.pData) + (pRect->top * pAlloc->SurfDesc.pitch) + ((pRect->left * bpp) >> 3), 8221 8150 pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, pAlloc->SurfDesc.pitch)); … … 8233 8162 if (pSuffix) 8234 8163 { 8235 vboxVDbg MpPrintF((pDevice,"%s\n", pSuffix));8236 } 8237 } 8238 8239 8240 VOID vboxVDbgDoDumpSurfData(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix)8164 vboxVDbgPrint(("%s\n", pSuffix)); 8165 } 8166 } 8167 8168 8169 VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix) 8241 8170 { 8242 8171 if (pPrefix) 8243 8172 { 8244 vboxVDbg MpPrintF((pDevice,"%s", pPrefix));8173 vboxVDbgPrint(("%s", pPrefix)); 8245 8174 } 8246 8175 … … 8248 8177 PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[iAlloc]; 8249 8178 8250 vboxVDbg MpPrintAlloc((pDevice, "allocation info:\n", pRc, iAlloc, "\n"));8179 vboxVDbgDoPrintAlloc("allocation info:\n", pRc, iAlloc, "\n"); 8251 8180 8252 8181 D3DLOCKED_RECT Lr; … … 8255 8184 Assert(pRect->right > pRect->left); 8256 8185 Assert(pRect->bottom > pRect->top); 8257 vboxVDbg MpPrintRect((pDevice, "rect: ", pRect, "\n"));8186 vboxVDbgDoPrintRect("rect: ", pRect, "\n"); 8258 8187 } 8259 8188 … … 8272 8201 // Assert(bpp == pAlloc->SurfDesc.bpp); 8273 8202 // Assert(pAlloc->SurfDesc.pitch == Lr.Pitch); 8274 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n",8203 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n", 8275 8204 Lr.pBits, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, Lr.Pitch)); 8276 8205 if (pRect) 8277 8206 { 8278 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n",8207 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">rect info</exec>\n", 8279 8208 ((uint8_t*)Lr.pBits) + (pRect->top * Lr.Pitch) + ((pRect->left * bpp) >> 3), 8280 8209 pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, Lr.Pitch)); … … 8287 8216 if (pSuffix) 8288 8217 { 8289 vboxVDbg MpPrintF((pDevice,"%s\n", pSuffix));8218 vboxVDbgPrint(("%s\n", pSuffix)); 8290 8219 } 8291 8220 … … 8294 8223 } 8295 8224 8296 VOID vboxVDbgDoDumpSurfDataBySurf( const PVBOXWDDMDISP_DEVICE pDevice,IDirect3DSurface9 *pSurf)8225 VOID vboxVDbgDoDumpSurfDataBySurf(IDirect3DSurface9 *pSurf) 8297 8226 { 8298 8227 D3DSURFACE_DESC Desc; … … 8307 8236 { 8308 8237 UINT bpp = vboxWddmCalcBitsPerPixel((D3DDDIFORMAT)Desc.Format); 8309 vboxVDbg MpPrintF((pDevice,"<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n",8238 vboxVDbgPrint(("<?dml?><exec cmd=\"!vbvdbg.ms 0x%p 0n%d 0n%d 0n%d 0n%d\">surface info</exec>\n", 8310 8239 Lr.pBits, Desc.Width, Desc.Height, bpp, Lr.Pitch)); 8311 8240 … … 8318 8247 } 8319 8248 8320 void vboxVDbgDo MpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice,const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix)8249 void vboxVDbgDoPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix) 8321 8250 { 8322 8251 Assert(pRc->cAllocations > iAlloc); … … 8330 8259 bFrontBuf = (vboxWddmSwapchainGetFb(pSwapchain)->pAlloc == pAlloc); 8331 8260 } 8332 vboxVDbg DoMpPrintF(pDevice,"%s D3DWidth(%d), width(%d), height(%d), format(%d), usage(%s), %s", pPrefix,8261 vboxVDbgPrint(("%s D3DWidth(%d), width(%d), height(%d), format(%d), usage(%s), %s", pPrefix, 8333 8262 pAlloc->D3DWidth, pAlloc->SurfDesc.width, pAlloc->SurfDesc.height, pAlloc->SurfDesc.format, 8334 8263 bPrimary ? 8335 8264 (bFrontBuf ? "Front Buffer" : "Back Buffer") 8336 8265 : "?Everage? Alloc", 8337 pSuffix) ;8338 } 8339 8340 void vboxVDbgDo MpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice,const char * pPrefix, const RECT *pRect, const char * pSuffix)8341 { 8342 vboxVDbg DoMpPrintF(pDevice, "%s left(%d), top(%d), right(%d), bottom(%d) %s", pPrefix, pRect->left, pRect->top, pRect->right, pRect->bottom, pSuffix);8266 pSuffix)); 8267 } 8268 8269 void vboxVDbgDoPrintRect(const char * pPrefix, const RECT *pRect, const char * pSuffix) 8270 { 8271 vboxVDbgPrint(("%s left(%d), top(%d), right(%d), bottom(%d) %s", pPrefix, pRect->left, pRect->top, pRect->right, pRect->bottom, pSuffix)); 8343 8272 } 8344 8273 #endif -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h
r34810 r34848 45 45 # define VBOXWDDMDISP_DEBUG_DUMPSURFDATA 46 46 # ifdef DEBUG_misha 47 # define VBOXWDDMDISP_DEBUG_VEHANDLER47 //# define VBOXWDDMDISP_DEBUG_VEHANDLER 48 48 # endif 49 49 #endif … … 79 79 #endif 80 80 81 #define vboxVDbgPrint Log 82 #define vboxVDbgPrintF LogFlow 83 #define vboxVDbgPrintR LogRel 84 85 #ifdef VBOXWDDMDISP_DEBUG 86 VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix); 87 VOID vboxVDbgDoDumpAllocSurfData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix); 88 VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix); 89 void vboxVDbgDoPrintRect(const char * pPrefix, const RECT *pRect, const char * pSuffix); 90 void vboxVDbgDoPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix); 91 #endif 92 93 #if 0 81 94 #ifdef VBOXWDDMDISP_DEBUG 82 95 extern bool g_VDbgTstDumpEnable; 83 96 extern bool g_VDbgTstDumpOnSys2VidSameSizeEnable; 84 97 85 VOID vboxVDbgDoDumpAllocData(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix);86 VOID vboxVDbgDoDumpAllocSurfData(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix);87 VOID vboxVDbgDoDumpSurfData(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix);88 void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, const RECT *pRect, const char * pSuffix);89 void vboxVDbgDoMpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice, constchar * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix);98 VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix); 99 VOID vboxVDbgDoDumpAllocSurfData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix); 100 VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix); 101 void vboxVDbgDoMpPrintRect(const char * pPrefix, const RECT *pRect, const char * pSuffix); 102 void vboxVDbgDoMpPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix); 90 103 91 104 #define vboxVDbgBreak() AssertBreakpoint() … … 145 158 #define vboxVDbgPrintF vboxVDbgPrint 146 159 #endif 160 #endif 147 161 148 162 # ifdef VBOXWDDMDISP
Note:
See TracChangeset
for help on using the changeset viewer.