Changeset 32739 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Sep 23, 2010 4:56:20 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Display/Makefile.kmk
r32622 r32739 85 85 VBoxDispD3D_DEFS += VBOX_WITH_VIDEOHWACCEL 86 86 endif 87 ifdef VBOX_WDDMDISP_WITH_PROFILE 88 VBoxDispD3D_DEFS += VBOX_WDDMDISP_WITH_PROFILE 89 endif 87 90 VBoxDispD3D_SOURCES = \ 88 91 wddm/VBoxDispD3D.cpp \ -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp
r32703 r32739 27 27 #include "VBoxScreen.h" 28 28 29 #ifdef VBOX_WDDMDISP_WITH_PROFILE 30 #include "VBoxDispProfile.h" 31 static VBoxDispProfileSet g_VBoxDispProfileDDI("D3D_DDI"); 32 //static BOOL g_VBoxDispPrifileDDIDumpAndReset = FALSE; 33 #define VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE() VBOXDISPPROFILE_FUNCTION_PROLOGUE(g_VBoxDispProfileDDI) 34 35 #define VBOXDISPPROFILE_DDI_DUMPRESET(_pDev) do {\ 36 AssertRelease(0); \ 37 g_VBoxDispProfileDDI.dump(_pDev);\ 38 g_VBoxDispProfileDDI.resetEntries();\ 39 VBOXDISPPROFILE_FUNCTION_LOGGER_DISABLE_CURRENT();\ 40 } while (0) 41 42 43 #else 44 #define VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE() do {} while (0) 45 #define VBOXDISPPROFILE_DDI_DUMPRESET(_pDev) do {} while (0) 46 #endif 47 29 48 #ifdef VBOXDISPMP_TEST 30 49 HRESULT vboxDispMpTstStart(); … … 32 51 #endif 33 52 34 #ifdef VBOXWDDMDISP_DEBUG 53 #ifdef VBOXWDDMDISP_DEBUG_PRINT 35 54 # include <stdio.h> 36 55 #endif … … 1452 1471 if (pSwapchain->pSwapChainIf) 1453 1472 { 1473 #ifndef VBOXWDDM_WITH_VISIBLE_FB 1454 1474 pSwapchain->pRenderTargetFbCopy->Release(); 1475 pSwapchain->pRenderTargetFbCopy = NULL; 1476 #endif 1455 1477 pSwapchain->pSwapChainIf->Release(); 1456 1478 Assert(pSwapchain->hWnd); 1457 1479 HRESULT hr = VBoxDispWndDestroy(pDevice->pAdapter, pSwapchain->hWnd); 1458 1480 Assert(hr == S_OK); 1459 pSwapchain->pRenderTargetFbCopy = NULL;1460 1481 pSwapchain->pSwapChainIf = NULL; 1461 1482 pSwapchain->hWnd = NULL; … … 3087 3108 static HRESULT APIENTRY vboxWddmDDevSetRenderState(HANDLE hDevice, CONST D3DDDIARG_RENDERSTATE* pData) 3088 3109 { 3110 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3089 3111 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3090 3112 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3099 3121 static HRESULT APIENTRY vboxWddmDDevUpdateWInfo(HANDLE hDevice, CONST D3DDDIARG_WINFO* pData) 3100 3122 { 3123 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3101 3124 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3102 3125 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); … … 3106 3129 static HRESULT APIENTRY vboxWddmDDevValidateDevice(HANDLE hDevice, D3DDDIARG_VALIDATETEXTURESTAGESTATE* pData) 3107 3130 { 3131 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3108 3132 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3109 3133 Assert(0); … … 3114 3138 static HRESULT APIENTRY vboxWddmDDevSetTextureStageState(HANDLE hDevice, CONST D3DDDIARG_TEXTURESTAGESTATE* pData) 3115 3139 { 3140 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3116 3141 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3117 3142 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3138 3163 static HRESULT APIENTRY vboxWddmDDevSetTexture(HANDLE hDevice, UINT Stage, HANDLE hTexture) 3139 3164 { 3165 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3140 3166 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3141 3167 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3170 3196 static HRESULT APIENTRY vboxWddmDDevSetPixelShader(HANDLE hDevice, HANDLE hShaderHandle) 3171 3197 { 3198 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3172 3199 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3173 3200 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3184 3211 static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConst(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONST* pData, CONST FLOAT* pRegisters) 3185 3212 { 3213 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3186 3214 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3187 3215 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3196 3224 static HRESULT APIENTRY vboxWddmDDevSetStreamSourceUm(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCEUM* pData, CONST VOID* pUMBuffer ) 3197 3225 { 3226 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3198 3227 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3199 3228 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3226 3255 static HRESULT APIENTRY vboxWddmDDevSetIndices(HANDLE hDevice, CONST D3DDDIARG_SETINDICES* pData) 3227 3256 { 3257 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3228 3258 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3229 3259 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3253 3283 static HRESULT APIENTRY vboxWddmDDevSetIndicesUm(HANDLE hDevice, UINT IndexSize, CONST VOID* pUMBuffer) 3254 3284 { 3285 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3255 3286 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3256 3287 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3265 3296 static HRESULT APIENTRY vboxWddmDDevDrawPrimitive(HANDLE hDevice, CONST D3DDDIARG_DRAWPRIMITIVE* pData, CONST UINT* pFlagBuffer) 3266 3297 { 3298 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3267 3299 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3268 3300 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3551 3583 static HRESULT APIENTRY vboxWddmDDevDrawIndexedPrimitive(HANDLE hDevice, CONST D3DDDIARG_DRAWINDEXEDPRIMITIVE* pData) 3552 3584 { 3585 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3553 3586 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3554 3587 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3606 3639 static HRESULT APIENTRY vboxWddmDDevDrawRectPatch(HANDLE hDevice, CONST D3DDDIARG_DRAWRECTPATCH* pData, CONST D3DDDIRECTPATCH_INFO* pInfo, CONST FLOAT* pPatch) 3607 3640 { 3641 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3608 3642 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3609 3643 Assert(0); … … 3614 3648 static HRESULT APIENTRY vboxWddmDDevDrawTriPatch(HANDLE hDevice, CONST D3DDDIARG_DRAWTRIPATCH* pData, CONST D3DDDITRIPATCH_INFO* pInfo, CONST FLOAT* pPatch) 3615 3649 { 3650 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3616 3651 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3617 3652 Assert(0); … … 3622 3657 static HRESULT APIENTRY vboxWddmDDevDrawPrimitive2(HANDLE hDevice, CONST D3DDDIARG_DRAWPRIMITIVE2* pData) 3623 3658 { 3659 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3624 3660 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3625 3661 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3720 3756 static HRESULT APIENTRY vboxWddmDDevDrawIndexedPrimitive2(HANDLE hDevice, CONST D3DDDIARG_DRAWINDEXEDPRIMITIVE2* pData, UINT dwIndicesSize, CONST VOID* pIndexBuffer, CONST UINT* pFlagBuffer) 3721 3757 { 3758 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3722 3759 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3723 3760 Assert(0); … … 3728 3765 static HRESULT APIENTRY vboxWddmDDevVolBlt(HANDLE hDevice, CONST D3DDDIARG_VOLUMEBLT* pData) 3729 3766 { 3767 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3730 3768 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3731 3769 Assert(0); … … 3736 3774 static HRESULT APIENTRY vboxWddmDDevBufBlt(HANDLE hDevice, CONST D3DDDIARG_BUFFERBLT* pData) 3737 3775 { 3776 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3738 3777 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3739 3778 Assert(0); … … 3744 3783 static HRESULT APIENTRY vboxWddmDDevTexBlt(HANDLE hDevice, CONST D3DDDIARG_TEXBLT* pData) 3745 3784 { 3785 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3746 3786 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3747 3787 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3863 3903 static HRESULT APIENTRY vboxWddmDDevStateSet(HANDLE hDevice, D3DDDIARG_STATESET* pData) 3864 3904 { 3905 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3865 3906 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3866 3907 Assert(0); … … 3870 3911 static HRESULT APIENTRY vboxWddmDDevSetPriority(HANDLE hDevice, CONST D3DDDIARG_SETPRIORITY* pData) 3871 3912 { 3913 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3872 3914 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3873 3915 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); … … 3886 3928 static HRESULT APIENTRY vboxWddmDDevClear(HANDLE hDevice, CONST D3DDDIARG_CLEAR* pData, UINT NumRect, CONST RECT* pRect) 3887 3929 { 3930 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3888 3931 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3889 3932 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3901 3944 static HRESULT APIENTRY vboxWddmDDevUpdatePalette(HANDLE hDevice, CONST D3DDDIARG_UPDATEPALETTE* pData, CONST PALETTEENTRY* pPaletteData) 3902 3945 { 3946 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3903 3947 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3904 3948 Assert(0); … … 3909 3953 static HRESULT APIENTRY vboxWddmDDevSetPalette(HANDLE hDevice, CONST D3DDDIARG_SETPALETTE* pData) 3910 3954 { 3955 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3911 3956 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3912 3957 Assert(0); … … 3917 3962 static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConst(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONST* pData , CONST VOID* pRegisters) 3918 3963 { 3964 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3919 3965 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3920 3966 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3931 3977 static HRESULT APIENTRY vboxWddmDDevMultiplyTransform(HANDLE hDevice, CONST D3DDDIARG_MULTIPLYTRANSFORM* pData) 3932 3978 { 3979 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3933 3980 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3934 3981 Assert(0); … … 3938 3985 static HRESULT APIENTRY vboxWddmDDevSetTransform(HANDLE hDevice, CONST D3DDDIARG_SETTRANSFORM* pData) 3939 3986 { 3987 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3940 3988 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3941 3989 Assert(0); … … 3945 3993 static HRESULT APIENTRY vboxWddmDDevSetViewport(HANDLE hDevice, CONST D3DDDIARG_VIEWPORTINFO* pData) 3946 3994 { 3995 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3947 3996 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3948 3997 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3960 4009 static HRESULT APIENTRY vboxWddmDDevSetZRange(HANDLE hDevice, CONST D3DDDIARG_ZRANGE* pData) 3961 4010 { 4011 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3962 4012 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3963 4013 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 3973 4023 static HRESULT APIENTRY vboxWddmDDevSetMaterial(HANDLE hDevice, CONST D3DDDIARG_SETMATERIAL* pData) 3974 4024 { 4025 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3975 4026 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3976 4027 Assert(0); … … 3980 4031 static HRESULT APIENTRY vboxWddmDDevSetLight(HANDLE hDevice, CONST D3DDDIARG_SETLIGHT* pData, CONST D3DDDI_LIGHT* pLightProperties) 3981 4032 { 4033 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3982 4034 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3983 4035 Assert(0); … … 3987 4039 static HRESULT APIENTRY vboxWddmDDevCreateLight(HANDLE hDevice, CONST D3DDDIARG_CREATELIGHT* pData) 3988 4040 { 4041 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3989 4042 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3990 4043 Assert(0); … … 3994 4047 static HRESULT APIENTRY vboxWddmDDevDestroyLight(HANDLE hDevice, CONST D3DDDIARG_DESTROYLIGHT* pData) 3995 4048 { 4049 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 3996 4050 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 3997 4051 Assert(0); … … 4001 4055 static HRESULT APIENTRY vboxWddmDDevSetClipPlane(HANDLE hDevice, CONST D3DDDIARG_SETCLIPPLANE* pData) 4002 4056 { 4057 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4003 4058 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4004 4059 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 4013 4068 static HRESULT APIENTRY vboxWddmDDevGetInfo(HANDLE hDevice, UINT DevInfoID, VOID* pDevInfoStruct, UINT DevInfoSize) 4014 4069 { 4070 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4015 4071 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4016 4072 HRESULT hr = S_OK; … … 4042 4098 static HRESULT APIENTRY vboxWddmDDevLock(HANDLE hDevice, D3DDDIARG_LOCK* pData) 4043 4099 { 4100 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4044 4101 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4045 4102 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 4434 4491 static HRESULT APIENTRY vboxWddmDDevUnlock(HANDLE hDevice, CONST D3DDDIARG_UNLOCK* pData) 4435 4492 { 4493 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4436 4494 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4437 4495 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 4590 4648 static HRESULT APIENTRY vboxWddmDDevLockAsync(HANDLE hDevice, D3DDDIARG_LOCKASYNC* pData) 4591 4649 { 4650 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4592 4651 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4593 4652 Assert(0); … … 4597 4656 static HRESULT APIENTRY vboxWddmDDevUnlockAsync(HANDLE hDevice, CONST D3DDDIARG_UNLOCKASYNC* pData) 4598 4657 { 4658 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4599 4659 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4600 4660 Assert(0); … … 4604 4664 static HRESULT APIENTRY vboxWddmDDevRename(HANDLE hDevice, CONST D3DDDIARG_RENAME* pData) 4605 4665 { 4666 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4606 4667 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4607 4668 Assert(0); … … 4654 4715 static HRESULT APIENTRY vboxWddmDDevCreateResource(HANDLE hDevice, D3DDDIARG_CREATERESOURCE* pResource) 4655 4716 { 4717 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 4656 4718 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 4657 4719 HRESULT hr = S_OK; … … 5183 5245 static HRESULT APIENTRY vboxWddmDDevDestroyResource(HANDLE hDevice, HANDLE hResource) 5184 5246 { 5247 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5185 5248 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5186 5249 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5264 5327 static HRESULT APIENTRY vboxWddmDDevSetDisplayMode(HANDLE hDevice, CONST D3DDDIARG_SETDISPLAYMODE* pData) 5265 5328 { 5329 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5266 5330 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5267 5331 HRESULT hr = S_OK; … … 5302 5366 static HRESULT APIENTRY vboxWddmDDevPresent(HANDLE hDevice, CONST D3DDDIARG_PRESENT* pData) 5303 5367 { 5368 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5304 5369 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5305 5370 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; 5371 // VBOXDISPPROFILE_DDI_CHKDUMPRESET(pDevice); 5306 5372 Assert(pDevice); 5307 5373 HRESULT hr = S_OK; … … 5534 5600 static HRESULT APIENTRY vboxWddmDDevFlush(HANDLE hDevice) 5535 5601 { 5602 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5536 5603 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5537 5604 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5584 5651 static HRESULT APIENTRY vboxWddmDDevCreateVertexShaderDecl(HANDLE hDevice, D3DDDIARG_CREATEVERTEXSHADERDECL* pData, CONST D3DDDIVERTEXELEMENT* pVertexElements) 5585 5652 { 5653 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5586 5654 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5587 5655 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5630 5698 static HRESULT APIENTRY vboxWddmDDevSetVertexShaderDecl(HANDLE hDevice, HANDLE hShaderHandle) 5631 5699 { 5700 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5632 5701 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5633 5702 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5643 5712 static HRESULT APIENTRY vboxWddmDDevDeleteVertexShaderDecl(HANDLE hDevice, HANDLE hShaderHandle) 5644 5713 { 5714 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5645 5715 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5646 5716 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5654 5724 static HRESULT APIENTRY vboxWddmDDevCreateVertexShaderFunc(HANDLE hDevice, D3DDDIARG_CREATEVERTEXSHADERFUNC* pData, CONST UINT* pCode) 5655 5725 { 5726 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5656 5727 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5657 5728 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5672 5743 static HRESULT APIENTRY vboxWddmDDevSetVertexShaderFunc(HANDLE hDevice, HANDLE hShaderHandle) 5673 5744 { 5745 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5674 5746 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5675 5747 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5685 5757 static HRESULT APIENTRY vboxWddmDDevDeleteVertexShaderFunc(HANDLE hDevice, HANDLE hShaderHandle) 5686 5758 { 5759 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5687 5760 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5688 5761 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5696 5769 static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConstI(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONSTI* pData, CONST INT* pRegisters) 5697 5770 { 5771 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5698 5772 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5699 5773 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5707 5781 static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConstB(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONSTB* pData, CONST BOOL* pRegisters) 5708 5782 { 5783 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5709 5784 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5710 5785 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5718 5793 static HRESULT APIENTRY vboxWddmDDevSetScissorRect(HANDLE hDevice, CONST RECT* pRect) 5719 5794 { 5795 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5720 5796 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5721 5797 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5729 5805 static HRESULT APIENTRY vboxWddmDDevSetStreamSource(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCE* pData) 5730 5806 { 5807 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5731 5808 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5732 5809 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5767 5844 static HRESULT APIENTRY vboxWddmDDevSetStreamSourceFreq(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCEFREQ* pData) 5768 5845 { 5846 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5769 5847 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5770 5848 Assert(0); … … 5774 5852 static HRESULT APIENTRY vboxWddmDDevSetConvolutionKernelMono(HANDLE hDevice, CONST D3DDDIARG_SETCONVOLUTIONKERNELMONO* pData) 5775 5853 { 5854 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5776 5855 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5777 5856 Assert(0); … … 5781 5860 static HRESULT APIENTRY vboxWddmDDevComposeRects(HANDLE hDevice, CONST D3DDDIARG_COMPOSERECTS* pData) 5782 5861 { 5862 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5783 5863 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5784 5864 Assert(0); … … 5850 5930 static HRESULT APIENTRY vboxWddmDDevBlt(HANDLE hDevice, CONST D3DDDIARG_BLT* pData) 5851 5931 { 5932 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 5852 5933 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 5853 5934 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 5879 5960 && pSrcSwapchain->pRenderTargetFbCopy 5880 5961 && vboxWddmSwapchainGetFb(pSrcSwapchain)->pAlloc == pSrcAlloc 5881 # ifdef VBOXDISP_WITH_WINE_BB_WORKAROUND5962 # ifdef VBOXDISP_WITH_WINE_BB_WORKAROUND 5882 5963 && vboxWddmSwapchainNumRTs(pSrcSwapchain) > 1 /* work-around wine backbuffer */ 5883 # endif5964 # endif 5884 5965 ) 5885 5966 { … … 5900 5981 // Assert(pData->SrcRect.right == pSrcAlloc->SurfDesc.width); 5901 5982 // Assert(pData->SrcRect.bottom == pSrcAlloc->SurfDesc.height); 5902 # if 05983 # if 0 5903 5984 if (pData->DstRect.left == 0 && pData->DstRect.top == 0 5904 5985 && pData->DstRect.right == pDstAlloc->SurfDesc.width … … 5916 5997 } 5917 5998 else 5918 # endif5999 # endif 5919 6000 { 5920 6001 pSrcSurfIf = pSrcSwapchain->pRenderTargetFbCopy; … … 6124 6205 static HRESULT APIENTRY vboxWddmDDevColorFill(HANDLE hDevice, CONST D3DDDIARG_COLORFILL* pData) 6125 6206 { 6207 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6126 6208 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6127 6209 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6148 6230 static HRESULT APIENTRY vboxWddmDDevDepthFill(HANDLE hDevice, CONST D3DDDIARG_DEPTHFILL* pData) 6149 6231 { 6232 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6150 6233 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6151 6234 Assert(0); … … 6155 6238 static HRESULT APIENTRY vboxWddmDDevCreateQuery(HANDLE hDevice, D3DDDIARG_CREATEQUERY* pData) 6156 6239 { 6240 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6157 6241 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6158 6242 HRESULT hr = S_OK; … … 6181 6265 static HRESULT APIENTRY vboxWddmDDevDestroyQuery(HANDLE hDevice, HANDLE hQuery) 6182 6266 { 6267 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6183 6268 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6184 6269 HRESULT hr = S_OK; … … 6191 6276 static HRESULT APIENTRY vboxWddmDDevIssueQuery(HANDLE hDevice, CONST D3DDDIARG_ISSUEQUERY* pData) 6192 6277 { 6278 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6193 6279 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6194 6280 HRESULT hr = S_OK; … … 6201 6287 static HRESULT APIENTRY vboxWddmDDevGetQueryData(HANDLE hDevice, CONST D3DDDIARG_GETQUERYDATA* pData) 6202 6288 { 6289 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6203 6290 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6204 6291 HRESULT hr = S_OK; … … 6223 6310 static HRESULT APIENTRY vboxWddmDDevSetRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETRENDERTARGET* pData) 6224 6311 { 6312 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6225 6313 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6226 6314 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6238 6326 static HRESULT APIENTRY vboxWddmDDevSetDepthStencil(HANDLE hDevice, CONST D3DDDIARG_SETDEPTHSTENCIL* pData) 6239 6327 { 6328 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6240 6329 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6241 6330 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6257 6346 static HRESULT APIENTRY vboxWddmDDevGenerateMipSubLevels(HANDLE hDevice, CONST D3DDDIARG_GENERATEMIPSUBLEVELS* pData) 6258 6347 { 6348 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6259 6349 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6260 6350 Assert(0); … … 6264 6354 static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConstI(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONSTI* pData, CONST INT* pRegisters) 6265 6355 { 6356 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6266 6357 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6267 6358 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6275 6366 static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConstB(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONSTB* pData, CONST BOOL* pRegisters) 6276 6367 { 6368 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6277 6369 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6278 6370 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6286 6378 static HRESULT APIENTRY vboxWddmDDevCreatePixelShader(HANDLE hDevice, D3DDDIARG_CREATEPIXELSHADER* pData, CONST UINT* pCode) 6287 6379 { 6380 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6288 6381 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6289 6382 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6304 6397 static HRESULT APIENTRY vboxWddmDDevDeletePixelShader(HANDLE hDevice, HANDLE hShaderHandle) 6305 6398 { 6399 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6306 6400 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6307 6401 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6315 6409 static HRESULT APIENTRY vboxWddmDDevCreateDecodeDevice(HANDLE hDevice, D3DDDIARG_CREATEDECODEDEVICE* pData) 6316 6410 { 6411 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6317 6412 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6318 6413 Assert(0); … … 6322 6417 static HRESULT APIENTRY vboxWddmDDevDestroyDecodeDevice(HANDLE hDevice, HANDLE hDecodeDevice) 6323 6418 { 6419 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6324 6420 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6325 6421 Assert(0); … … 6329 6425 static HRESULT APIENTRY vboxWddmDDevSetDecodeRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETDECODERENDERTARGET* pData) 6330 6426 { 6427 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6331 6428 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6332 6429 Assert(0); … … 6336 6433 static HRESULT APIENTRY vboxWddmDDevDecodeBeginFrame(HANDLE hDevice, D3DDDIARG_DECODEBEGINFRAME* pData) 6337 6434 { 6435 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6338 6436 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6339 6437 Assert(0); … … 6343 6441 static HRESULT APIENTRY vboxWddmDDevDecodeEndFrame(HANDLE hDevice, D3DDDIARG_DECODEENDFRAME* pData) 6344 6442 { 6443 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6345 6444 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6346 6445 Assert(0); … … 6350 6449 static HRESULT APIENTRY vboxWddmDDevDecodeExecute(HANDLE hDevice, CONST D3DDDIARG_DECODEEXECUTE* pData) 6351 6450 { 6451 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6352 6452 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6353 6453 Assert(0); … … 6357 6457 static HRESULT APIENTRY vboxWddmDDevDecodeExtensionExecute(HANDLE hDevice, CONST D3DDDIARG_DECODEEXTENSIONEXECUTE* pData) 6358 6458 { 6459 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6359 6460 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6360 6461 Assert(0); … … 6364 6465 static HRESULT APIENTRY vboxWddmDDevCreateVideoProcessDevice(HANDLE hDevice, D3DDDIARG_CREATEVIDEOPROCESSDEVICE* pData) 6365 6466 { 6467 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6366 6468 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6367 6469 Assert(0); … … 6371 6473 static HRESULT APIENTRY vboxWddmDDevDestroyVideoProcessDevice(HANDLE hDevice, HANDLE hVideoProcessor) 6372 6474 { 6475 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6373 6476 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6374 6477 Assert(0); … … 6378 6481 static HRESULT APIENTRY vboxWddmDDevVideoProcessBeginFrame(HANDLE hDevice, HANDLE hVideoProcess) 6379 6482 { 6483 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6380 6484 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6381 6485 Assert(0); … … 6385 6489 static HRESULT APIENTRY vboxWddmDDevVideoProcessEndFrame(HANDLE hDevice, D3DDDIARG_VIDEOPROCESSENDFRAME* pData) 6386 6490 { 6491 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6387 6492 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6388 6493 Assert(0); … … 6392 6497 static HRESULT APIENTRY vboxWddmDDevSetVideoProcessRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETVIDEOPROCESSRENDERTARGET* pData) 6393 6498 { 6499 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6394 6500 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6395 6501 Assert(0); … … 6399 6505 static HRESULT APIENTRY vboxWddmDDevVideoProcessBlt(HANDLE hDevice, CONST D3DDDIARG_VIDEOPROCESSBLT* pData) 6400 6506 { 6507 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6401 6508 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6402 6509 Assert(0); … … 6406 6513 static HRESULT APIENTRY vboxWddmDDevCreateExtensionDevice(HANDLE hDevice, D3DDDIARG_CREATEEXTENSIONDEVICE* pData) 6407 6514 { 6515 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6408 6516 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6409 6517 Assert(0); … … 6413 6521 static HRESULT APIENTRY vboxWddmDDevDestroyExtensionDevice(HANDLE hDevice, HANDLE hExtension) 6414 6522 { 6523 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6415 6524 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6416 6525 Assert(0); … … 6420 6529 static HRESULT APIENTRY vboxWddmDDevExtensionExecute(HANDLE hDevice, CONST D3DDDIARG_EXTENSIONEXECUTE* pData) 6421 6530 { 6531 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6422 6532 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6423 6533 Assert(0); … … 6427 6537 static HRESULT APIENTRY vboxWddmDDevDestroyDevice(IN HANDLE hDevice) 6428 6538 { 6539 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6429 6540 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6430 6541 6431 6542 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; 6543 VBOXDISPPROFILE_DDI_DUMPRESET(pDevice); 6432 6544 PVBOXWDDMDISP_ADAPTER pAdapter = pDevice->pAdapter; 6433 6545 // Assert(!pDevice->cScreens); … … 6455 6567 static HRESULT APIENTRY vboxWddmDDevCreateOverlay(HANDLE hDevice, D3DDDIARG_CREATEOVERLAY* pData) 6456 6568 { 6569 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6457 6570 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6458 6571 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6518 6631 static HRESULT APIENTRY vboxWddmDDevUpdateOverlay(HANDLE hDevice, CONST D3DDDIARG_UPDATEOVERLAY* pData) 6519 6632 { 6633 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6520 6634 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6521 6635 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6561 6675 static HRESULT APIENTRY vboxWddmDDevFlipOverlay(HANDLE hDevice, CONST D3DDDIARG_FLIPOVERLAY* pData) 6562 6676 { 6677 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6563 6678 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6564 6679 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6597 6712 static HRESULT APIENTRY vboxWddmDDevGetOverlayColorControls(HANDLE hDevice, D3DDDIARG_GETOVERLAYCOLORCONTROLS* pData) 6598 6713 { 6714 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6599 6715 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6600 6716 Assert(0); … … 6604 6720 static HRESULT APIENTRY vboxWddmDDevSetOverlayColorControls(HANDLE hDevice, CONST D3DDDIARG_SETOVERLAYCOLORCONTROLS* pData) 6605 6721 { 6722 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6606 6723 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6607 6724 Assert(0); … … 6611 6728 static HRESULT APIENTRY vboxWddmDDevDestroyOverlay(HANDLE hDevice, CONST D3DDDIARG_DESTROYOVERLAY* pData) 6612 6729 { 6730 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6613 6731 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6614 6732 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6632 6750 static HRESULT APIENTRY vboxWddmDDevQueryResourceResidency(HANDLE hDevice, CONST D3DDDIARG_QUERYRESOURCERESIDENCY* pData) 6633 6751 { 6752 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6634 6753 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6635 6754 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6677 6796 static HRESULT APIENTRY vboxWddmDDevOpenResource(HANDLE hDevice, D3DDDIARG_OPENRESOURCE* pData) 6678 6797 { 6798 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6679 6799 vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6680 6800 PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice; … … 6828 6948 static HRESULT APIENTRY vboxWddmDDevGetCaptureAllocationHandle(HANDLE hDevice, D3DDDIARG_GETCAPTUREALLOCATIONHANDLE* pData) 6829 6949 { 6950 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6830 6951 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6831 6952 Assert(0); … … 6836 6957 static HRESULT APIENTRY vboxWddmDDevCaptureToSysMem(HANDLE hDevice, CONST D3DDDIARG_CAPTURETOSYSMEM* pData) 6837 6958 { 6959 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6838 6960 vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice)); 6839 6961 Assert(0); … … 6844 6966 static HRESULT APIENTRY vboxWddmDispCreateDevice (IN HANDLE hAdapter, IN D3DDDIARG_CREATEDEVICE* pCreateData) 6845 6967 { 6968 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 6846 6969 HRESULT hr = S_OK; 6847 6970 vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p), Interface(%d), Version(%d)\n", hAdapter, pCreateData->Interface, pCreateData->Version)); … … 7063 7186 static HRESULT APIENTRY vboxWddmDispCloseAdapter (IN HANDLE hAdapter) 7064 7187 { 7188 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 7065 7189 vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter)); 7066 7190 … … 7087 7211 HRESULT APIENTRY OpenAdapter (__inout D3DDDIARG_OPENADAPTER* pOpenData) 7088 7212 { 7213 VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE(); 7089 7214 vboxVDbgPrint(("==> "__FUNCTION__"\n")); 7090 7215 … … 7219 7344 } 7220 7345 7346 #ifdef VBOXWDDMDISP_DEBUG_PRINT 7347 VOID vboxVDbgDoMpPrint(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString) 7348 { 7349 uint32_t cbString = strlen(szString) + 1; 7350 uint32_t cbCmd = RT_OFFSETOF(VBOXDISPIFESCAPE_DBGPRINT, aStringBuf[cbString]); 7351 PVBOXDISPIFESCAPE_DBGPRINT pCmd = (PVBOXDISPIFESCAPE_DBGPRINT)RTMemAllocZ(cbCmd); 7352 Assert(pCmd); 7353 if (pCmd) 7354 { 7355 pCmd->EscapeHdr.escapeCode = VBOXESC_DBGPRINT; 7356 memcpy(pCmd->aStringBuf, szString, cbString); 7357 7358 D3DDDICB_ESCAPE DdiEscape = {0}; 7359 DdiEscape.hContext = NULL; 7360 DdiEscape.hDevice = NULL; 7361 DdiEscape.Flags.Value = 0; 7362 DdiEscape.pPrivateDriverData = pCmd; 7363 DdiEscape.PrivateDriverDataSize = cbCmd; 7364 7365 HRESULT hr = pDevice->RtCallbacks.pfnEscapeCb(pDevice->pAdapter->hAdapter, &DdiEscape); 7366 Assert(hr == S_OK); 7367 7368 RTMemFree(pCmd); 7369 } 7370 } 7371 VOID vboxVDbgDoMpPrintF(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString, ...) 7372 { 7373 char szBuffer[4096] = {0}; 7374 va_list pArgList; 7375 va_start(pArgList, szString); 7376 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList); 7377 va_end(pArgList); 7378 7379 if (pDevice) 7380 { 7381 vboxVDbgDoMpPrint(pDevice, szBuffer); 7382 } 7383 else 7384 { 7385 OutputDebugStringA(szBuffer); 7386 } 7387 } 7388 VOID vboxVDbgDoPrint(LPCSTR szString, ...) 7389 { 7390 char szBuffer[1024] = {0}; 7391 va_list pArgList; 7392 va_start(pArgList, szString); 7393 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList); 7394 va_end(pArgList); 7395 7396 OutputDebugStringA(szBuffer); 7397 } 7398 #endif 7399 7221 7400 #ifdef VBOXWDDMDISP_DEBUG 7222 7401 … … 7329 7508 } 7330 7509 7331 VOID vboxVDbgDoMpPrint(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString)7332 {7333 uint32_t cbString = strlen(szString) + 1;7334 uint32_t cbCmd = RT_OFFSETOF(VBOXDISPIFESCAPE_DBGPRINT, aStringBuf[cbString]);7335 PVBOXDISPIFESCAPE_DBGPRINT pCmd = (PVBOXDISPIFESCAPE_DBGPRINT)RTMemAllocZ(cbCmd);7336 Assert(pCmd);7337 if (pCmd)7338 {7339 pCmd->EscapeHdr.escapeCode = VBOXESC_DBGPRINT;7340 memcpy(pCmd->aStringBuf, szString, cbString);7341 7342 D3DDDICB_ESCAPE DdiEscape = {0};7343 DdiEscape.hContext = NULL;7344 DdiEscape.hDevice = NULL;7345 DdiEscape.Flags.Value = 0;7346 DdiEscape.pPrivateDriverData = pCmd;7347 DdiEscape.PrivateDriverDataSize = cbCmd;7348 7349 HRESULT hr = pDevice->RtCallbacks.pfnEscapeCb(pDevice->pAdapter->hAdapter, &DdiEscape);7350 Assert(hr == S_OK);7351 7352 RTMemFree(pCmd);7353 }7354 }7355 VOID vboxVDbgDoMpPrintF(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString, ...)7356 {7357 char szBuffer[4096] = {0};7358 va_list pArgList;7359 va_start(pArgList, szString);7360 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList);7361 va_end(pArgList);7362 7363 if (pDevice)7364 {7365 vboxVDbgDoMpPrint(pDevice, szBuffer);7366 }7367 else7368 {7369 OutputDebugStringA(szBuffer);7370 }7371 }7372 VOID vboxVDbgDoPrint(LPCSTR szString, ...)7373 {7374 char szBuffer[1024] = {0};7375 va_list pArgList;7376 va_start(pArgList, szString);7377 _vsnprintf(szBuffer, sizeof(szBuffer) / sizeof(szBuffer[0]), szString, pArgList);7378 va_end(pArgList);7379 7380 OutputDebugStringA(szBuffer);7381 }7382 7383 7510 static PVOID g_VBoxWDbgVEHandler = NULL; 7384 7511 LONG WINAPI vboxVDbgVectoredHandler(struct _EXCEPTION_POINTERS *pExceptionInfo) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h
r32325 r32739 41 41 #endif 42 42 43 #if defined(VBOXWDDMDISP_DEBUG) || defined(VBOX_WDDMDISP_WITH_PROFILE) 44 # define VBOXWDDMDISP_DEBUG_PRINT 45 #endif 46 43 47 #if 0 44 48 # ifdef Assert … … 56 60 #endif 57 61 62 #ifdef VBOXWDDMDISP_DEBUG_PRINT 63 VOID vboxVDbgDoMpPrintF(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString, ...); 64 VOID vboxVDbgDoPrint(LPCSTR szString, ...); 65 #endif 66 58 67 #ifdef VBOXWDDMDISP_DEBUG 59 68 extern bool g_VDbgTstDumpEnable; … … 63 72 void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const RECT *pRect, const char * pSuffix); 64 73 void vboxVDbgDoMpPrintAlloc(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const PVBOXWDDMDISP_RESOURCE pRc, uint32_t iAlloc, const char * pSuffix); 65 VOID vboxVDbgDoPrint(LPCSTR szString, ...);66 VOID vboxVDbgDoMpPrintF(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString, ...);67 74 void vboxVDbgVEHandlerRegister(); 68 75 void vboxVDbgVEHandlerUnregister(); -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk
r32681 r32739 89 89 endif 90 90 endif 91 VBoxVideoWddm_DEFS += LOG_ENABLED91 #VBoxVideoWddm_DEFS += LOG_ENABLED 92 92 #VBoxVideoWddm_DEFS += VBOX_WITH_MULTIMONITOR_FIX 93 93 #VBoxVideoWddm_DEFS += LOG_TO_BACKDOOR
Note:
See TracChangeset
for help on using the changeset viewer.