VirtualBox

Ignore:
Timestamp:
Dec 8, 2010 8:35:20 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68661
Message:

logging

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  
    7474VBoxDispD3D_NAME.amd64 = VBoxDispD3D64
    7575VBoxDispD3D_TEMPLATE = VBOXGUESTR3DLL
    76 VBoxDispD3D_DEFS     = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP
     76VBoxDispD3D_DEFS     = UNICODE _UNICODE VBOX_WITH_WDDM VBOXWDDMDISP LOG_TO_BACKDOOR
     77ifdef DEBUG_misha
     78VBoxDispD3D_DEFS    += LOG_ENABLED
     79endif
     80
    7781# VBoxDispD3D_DEFS    += VBOXDISPMP_TEST
    7882ifdef VBOXWDDM_WITH_VBVA
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispCm.cpp

    r34406 r34848  
    272272        PVBOXWDDMDISP_DEVICE pDevice = pContext->pDevice;
    273273        Assert(pDevice);
    274         vboxVDbgMpPrint((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  
    29492949            vboxVDbgVEHandlerRegister();
    29502950#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);
    29672961                    if (hr == S_OK)
    29682962                    {
     
    29702964                        return TRUE;
    29712965                    }
    2972 #ifdef VBOXDISPMP_TEST
    2973                     vboxDispMpTstStop();
    2974 #endif
     2966                    VbglR3Term();
    29752967                }
    2976                 vboxDispCmTerm();
    2977             }
    2978 //                VbglR3Init();
     2968            }
    29792969            break;
    29802970        }
     
    29852975            vboxVDbgVEHandlerUnregister();
    29862976#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
    30092986            break;
    30102987        }
     
    34363413            pD3DIfTex = (IDirect3DTexture9*)pRc->aAllocations[0].pD3DIf;
    34373414#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;
    34393418
    34403419            if (bDo)
    34413420            {
    3442             vboxVDbgDumpSurfData((pDevice, "SetTexture:\n", pRc, 0 /* alloc index*/, NULL, NULL, "\n"));
     3421                vboxVDbgDoDumpSurfData("SetTexture:\n", pRc, 0 /* alloc index*/, NULL, NULL, "\n");
    34433422            }
    34443423#endif
     
    40864065
    40874066#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    }
    41324085#endif
    41334086
     
    41784131
    41794132#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
    41804136    if (bDo)
    41814137    {
    41824138        RECT DstRect;
    41834139        vboxWddmRectMoved(&DstRect, &pData->SrcRect, pData->DstPoint.x, pData->DstPoint.y);
    4184         vboxVDbgDumpSurfData((pDevice, "TexBlt-post Src:\n", pSrcRc, 0, &pData->SrcRect, pTstSrcSurfIf, "\n"));
    4185         vboxVDbgDumpSurfData((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");
    41864142    }
    41874143
     
    65716527                Assert(pSrcSurfIf);
    65726528#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;
    66026532
    66036533                if (bDo)
    66046534                {
    6605                     vboxVDbgDumpSurfData((pDevice, "Blt-pre Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"));
    6606                     vboxVDbgDumpSurfData((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");
    66076537                }
    66086538#endif
     
    66176547
    66186548#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 */
    66196551                if (bDo)
    66206552                {
    6621                     vboxVDbgDumpSurfData((pDevice, "Blt-post Src:\n", pSrcRc, pData->SrcSubResourceIndex, &pData->SrcRect, pSrcSurfIf, "\n"));
    6622                     vboxVDbgDumpSurfData((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");
    66236555                }
    66246556#endif
     
    79097841    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter));
    79107842
    7911 //    Assert(0);
    7912 
    79137843    PVBOXWDDMDISP_ADAPTER pAdapter = (PVBOXWDDMDISP_ADAPTER)hAdapter;
    79147844    if (VBOXDISPMODE_IS_3D(pAdapter))
     
    81368066#ifdef VBOXWDDMDISP_DEBUG
    81378067
    8138 bool g_VDbgTstDumpEnable = false;
    8139 bool g_VDbgTstDumpOnSys2VidSameSizeEnable = false;
    8140 
    81418068VOID vboxVDbgDoDumpAllocSurfData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix)
    81428069{
    81438070    if (pPrefix)
    81448071    {
    8145         vboxVDbgMpPrintF((pDevice, "%s", pPrefix));
     8072        vboxVDbgPrint(("%s", pPrefix));
    81468073    }
    81478074
     
    81518078        Assert(pRect->right > pRect->left);
    81528079        Assert(pRect->bottom > pRect->top);
    8153         vboxVDbgMpPrintRect((pDevice, "rect: ", pRect, "\n"));
     8080        vboxVDbgDoPrintRect("rect: ", pRect, "\n");
    81548081    }
    81558082
     
    81618088//        Assert(bpp == pAlloc->SurfDesc.bpp);
    81628089//        Assert(pAlloc->SurfDesc.pitch == Lr.Pitch);
    8163         vboxVDbgMpPrintF((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",
    81648091                Lr.pBits, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, Lr.Pitch));
    81658092        if (pRect)
    81668093        {
    8167             vboxVDbgMpPrintF((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",
    81688095                    ((uint8_t*)Lr.pBits) + (pRect->top * Lr.Pitch) + ((pRect->left * bpp) >> 3),
    81698096                    pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, Lr.Pitch));
     
    81768103    if (pSuffix)
    81778104    {
    8178         vboxVDbgMpPrintF((pDevice, "%s\n", pSuffix));
    8179     }
    8180 }
    8181 
    8182 VOID vboxVDbgDoDumpAllocData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix)
     8105        vboxVDbgPrint(("%s\n", pSuffix));
     8106    }
     8107}
     8108
     8109VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix)
    81838110{
    81848111    if (pPrefix)
    81858112    {
    8186         vboxVDbgMpPrintF((pDevice, "%s", pPrefix));
     8113        vboxVDbgPrint(("%s", pPrefix));
    81878114    }
    81888115
     
    81918118        Assert(pRect->right > pRect->left);
    81928119        Assert(pRect->bottom > pRect->top);
    8193         vboxVDbgMpPrintRect((pDevice, "rect: ", pRect, "\n"));
     8120        vboxVDbgDoPrintRect("rect: ", pRect, "\n");
    81948121    }
    81958122
     
    82068133    LockData.Flags.ReadOnly = 1;
    82078134
     8135    PVBOXWDDMDISP_DEVICE pDevice = pAlloc->pRc->pDevice;
     8136
    82088137    HRESULT hr = pDevice->RtCallbacks.pfnLockCb(pDevice->hDevice, &LockData);
    82098138    Assert(hr == S_OK);
     
    82138142//        Assert(bpp == pAlloc->SurfDesc.bpp);
    82148143//        Assert(pAlloc->SurfDesc.pitch == Lr.Pitch);
    8215         vboxVDbgMpPrintF((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",
    82168145                LockData.pData, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, pAlloc->SurfDesc.pitch));
    82178146        if (pRect)
    82188147        {
    8219             vboxVDbgMpPrintF((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",
    82208149                    ((uint8_t*)LockData.pData) + (pRect->top * pAlloc->SurfDesc.pitch) + ((pRect->left * bpp) >> 3),
    82218150                    pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, pAlloc->SurfDesc.pitch));
     
    82338162    if (pSuffix)
    82348163    {
    8235         vboxVDbgMpPrintF((pDevice, "%s\n", pSuffix));
    8236     }
    8237 }
    8238 
    8239 
    8240 VOID vboxVDbgDoDumpSurfData(const PVBOXWDDMDISP_DEVICE pDevice, const char * 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
     8169VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix)
    82418170{
    82428171    if (pPrefix)
    82438172    {
    8244         vboxVDbgMpPrintF((pDevice, "%s", pPrefix));
     8173        vboxVDbgPrint(("%s", pPrefix));
    82458174    }
    82468175
     
    82488177    PVBOXWDDMDISP_ALLOCATION pAlloc = &pRc->aAllocations[iAlloc];
    82498178
    8250     vboxVDbgMpPrintAlloc((pDevice, "allocation info:\n", pRc, iAlloc, "\n"));
     8179    vboxVDbgDoPrintAlloc("allocation info:\n", pRc, iAlloc, "\n");
    82518180
    82528181    D3DLOCKED_RECT Lr;
     
    82558184        Assert(pRect->right > pRect->left);
    82568185        Assert(pRect->bottom > pRect->top);
    8257         vboxVDbgMpPrintRect((pDevice, "rect: ", pRect, "\n"));
     8186        vboxVDbgDoPrintRect("rect: ", pRect, "\n");
    82588187    }
    82598188
     
    82728201//        Assert(bpp == pAlloc->SurfDesc.bpp);
    82738202//        Assert(pAlloc->SurfDesc.pitch == Lr.Pitch);
    8274         vboxVDbgMpPrintF((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",
    82758204                Lr.pBits, pAlloc->D3DWidth, pAlloc->SurfDesc.height, bpp, Lr.Pitch));
    82768205        if (pRect)
    82778206        {
    8278             vboxVDbgMpPrintF((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",
    82798208                    ((uint8_t*)Lr.pBits) + (pRect->top * Lr.Pitch) + ((pRect->left * bpp) >> 3),
    82808209                    pRect->right - pRect->left, pRect->bottom - pRect->top, bpp, Lr.Pitch));
     
    82878216    if (pSuffix)
    82888217    {
    8289         vboxVDbgMpPrintF((pDevice, "%s\n", pSuffix));
     8218        vboxVDbgPrint(("%s\n", pSuffix));
    82908219    }
    82918220
     
    82948223}
    82958224
    8296 VOID vboxVDbgDoDumpSurfDataBySurf(const PVBOXWDDMDISP_DEVICE pDevice, IDirect3DSurface9 *pSurf)
     8225VOID vboxVDbgDoDumpSurfDataBySurf(IDirect3DSurface9 *pSurf)
    82978226{
    82988227    D3DSURFACE_DESC Desc;
     
    83078236        {
    83088237            UINT bpp = vboxWddmCalcBitsPerPixel((D3DDDIFORMAT)Desc.Format);
    8309             vboxVDbgMpPrintF((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",
    83108239                    Lr.pBits, Desc.Width, Desc.Height, bpp, Lr.Pitch));
    83118240
     
    83188247}
    83198248
    8320 void vboxVDbgDoMpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix)
     8249void vboxVDbgDoPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix)
    83218250{
    83228251    Assert(pRc->cAllocations > iAlloc);
     
    83308259        bFrontBuf = (vboxWddmSwapchainGetFb(pSwapchain)->pAlloc == pAlloc);
    83318260    }
    8332     vboxVDbgDoMpPrintF(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,
    83338262            pAlloc->D3DWidth, pAlloc->SurfDesc.width, pAlloc->SurfDesc.height, pAlloc->SurfDesc.format,
    83348263            bPrimary ?
    83358264                    (bFrontBuf ? "Front Buffer" : "Back Buffer")
    83368265                    : "?Everage? Alloc",
    8337             pSuffix);
    8338 }
    8339 
    8340 void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const RECT *pRect, const char * pSuffix)
    8341 {
    8342     vboxVDbgDoMpPrintF(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
     8269void 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));
    83438272}
    83448273#endif
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h

    r34810 r34848  
    4545# define VBOXWDDMDISP_DEBUG_DUMPSURFDATA
    4646# ifdef DEBUG_misha
    47 #  define VBOXWDDMDISP_DEBUG_VEHANDLER
     47//#  define VBOXWDDMDISP_DEBUG_VEHANDLER
    4848# endif
    4949#endif
     
    7979#endif
    8080
     81#define vboxVDbgPrint Log
     82#define vboxVDbgPrintF LogFlow
     83#define vboxVDbgPrintR LogRel
     84
     85#ifdef VBOXWDDMDISP_DEBUG
     86VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix);
     87VOID vboxVDbgDoDumpAllocSurfData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix);
     88VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix);
     89void vboxVDbgDoPrintRect(const char * pPrefix, const RECT *pRect, const char * pSuffix);
     90void vboxVDbgDoPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix);
     91#endif
     92
     93#if 0
    8194#ifdef VBOXWDDMDISP_DEBUG
    8295extern bool g_VDbgTstDumpEnable;
    8396extern bool g_VDbgTstDumpOnSys2VidSameSizeEnable;
    8497
    85 VOID vboxVDbgDoDumpAllocData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix);
    86 VOID vboxVDbgDoDumpAllocSurfData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix);
    87 VOID vboxVDbgDoDumpSurfData(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix);
    88 void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const RECT *pRect, const char * pSuffix);
    89 void vboxVDbgDoMpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix);
     98VOID vboxVDbgDoDumpAllocData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, const RECT *pRect, const char* pSuffix);
     99VOID vboxVDbgDoDumpAllocSurfData(const char * pPrefix, PVBOXWDDMDISP_ALLOCATION pAlloc, IDirect3DSurface9 *pSurf, const RECT *pRect, const char* pSuffix);
     100VOID vboxVDbgDoDumpSurfData(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const RECT *pRect, IDirect3DSurface9 *pSurf, const char* pSuffix);
     101void vboxVDbgDoMpPrintRect(const char * pPrefix, const RECT *pRect, const char * pSuffix);
     102void vboxVDbgDoMpPrintAlloc(const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix);
    90103
    91104#define vboxVDbgBreak() AssertBreakpoint()
     
    145158#define vboxVDbgPrintF vboxVDbgPrint
    146159#endif
     160#endif
    147161
    148162# ifdef VBOXWDDMDISP
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette