VirtualBox

Changeset 32739 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Sep 23, 2010 4:56:20 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: profiling stuff

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  
    8585 VBoxDispD3D_DEFS   += VBOX_WITH_VIDEOHWACCEL
    8686endif
     87ifdef VBOX_WDDMDISP_WITH_PROFILE
     88 VBoxDispD3D_DEFS   += VBOX_WDDMDISP_WITH_PROFILE
     89endif
    8790VBoxDispD3D_SOURCES  = \
    8891        wddm/VBoxDispD3D.cpp \
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r32703 r32739  
    2727#include "VBoxScreen.h"
    2828
     29#ifdef VBOX_WDDMDISP_WITH_PROFILE
     30#include "VBoxDispProfile.h"
     31static 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
    2948#ifdef VBOXDISPMP_TEST
    3049HRESULT vboxDispMpTstStart();
     
    3251#endif
    3352
    34 #ifdef VBOXWDDMDISP_DEBUG
     53#ifdef VBOXWDDMDISP_DEBUG_PRINT
    3554# include <stdio.h>
    3655#endif
     
    14521471    if (pSwapchain->pSwapChainIf)
    14531472    {
     1473#ifndef VBOXWDDM_WITH_VISIBLE_FB
    14541474        pSwapchain->pRenderTargetFbCopy->Release();
     1475        pSwapchain->pRenderTargetFbCopy = NULL;
     1476#endif
    14551477        pSwapchain->pSwapChainIf->Release();
    14561478        Assert(pSwapchain->hWnd);
    14571479        HRESULT hr = VBoxDispWndDestroy(pDevice->pAdapter, pSwapchain->hWnd);
    14581480        Assert(hr == S_OK);
    1459         pSwapchain->pRenderTargetFbCopy = NULL;
    14601481        pSwapchain->pSwapChainIf = NULL;
    14611482        pSwapchain->hWnd = NULL;
     
    30873108static HRESULT APIENTRY vboxWddmDDevSetRenderState(HANDLE hDevice, CONST D3DDDIARG_RENDERSTATE* pData)
    30883109{
     3110    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    30893111    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    30903112    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    30993121static HRESULT APIENTRY vboxWddmDDevUpdateWInfo(HANDLE hDevice, CONST D3DDDIARG_WINFO* pData)
    31003122{
     3123    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31013124    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31023125    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     
    31063129static HRESULT APIENTRY vboxWddmDDevValidateDevice(HANDLE hDevice, D3DDDIARG_VALIDATETEXTURESTAGESTATE* pData)
    31073130{
     3131    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31083132    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31093133    Assert(0);
     
    31143138static HRESULT APIENTRY vboxWddmDDevSetTextureStageState(HANDLE hDevice, CONST D3DDDIARG_TEXTURESTAGESTATE* pData)
    31153139{
     3140    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31163141    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31173142    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    31383163static HRESULT APIENTRY vboxWddmDDevSetTexture(HANDLE hDevice, UINT Stage, HANDLE hTexture)
    31393164{
     3165    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31403166    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31413167    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    31703196static HRESULT APIENTRY vboxWddmDDevSetPixelShader(HANDLE hDevice, HANDLE hShaderHandle)
    31713197{
     3198    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31723199    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31733200    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    31843211static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConst(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONST* pData, CONST FLOAT* pRegisters)
    31853212{
     3213    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31863214    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31873215    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    31963224static HRESULT APIENTRY vboxWddmDDevSetStreamSourceUm(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCEUM* pData, CONST VOID* pUMBuffer )
    31973225{
     3226    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    31983227    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    31993228    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    32263255static HRESULT APIENTRY vboxWddmDDevSetIndices(HANDLE hDevice, CONST D3DDDIARG_SETINDICES* pData)
    32273256{
     3257    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    32283258    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    32293259    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    32533283static HRESULT APIENTRY vboxWddmDDevSetIndicesUm(HANDLE hDevice, UINT IndexSize, CONST VOID* pUMBuffer)
    32543284{
     3285    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    32553286    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    32563287    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    32653296static HRESULT APIENTRY vboxWddmDDevDrawPrimitive(HANDLE hDevice, CONST D3DDDIARG_DRAWPRIMITIVE* pData, CONST UINT* pFlagBuffer)
    32663297{
     3298    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    32673299    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    32683300    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    35513583static HRESULT APIENTRY vboxWddmDDevDrawIndexedPrimitive(HANDLE hDevice, CONST D3DDDIARG_DRAWINDEXEDPRIMITIVE* pData)
    35523584{
     3585    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    35533586    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    35543587    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    36063639static HRESULT APIENTRY vboxWddmDDevDrawRectPatch(HANDLE hDevice, CONST D3DDDIARG_DRAWRECTPATCH* pData, CONST D3DDDIRECTPATCH_INFO* pInfo, CONST FLOAT* pPatch)
    36073640{
     3641    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    36083642    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    36093643    Assert(0);
     
    36143648static HRESULT APIENTRY vboxWddmDDevDrawTriPatch(HANDLE hDevice, CONST D3DDDIARG_DRAWTRIPATCH* pData, CONST D3DDDITRIPATCH_INFO* pInfo, CONST FLOAT* pPatch)
    36153649{
     3650    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    36163651    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    36173652    Assert(0);
     
    36223657static HRESULT APIENTRY vboxWddmDDevDrawPrimitive2(HANDLE hDevice, CONST D3DDDIARG_DRAWPRIMITIVE2* pData)
    36233658{
     3659    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    36243660    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    36253661    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    37203756static HRESULT APIENTRY vboxWddmDDevDrawIndexedPrimitive2(HANDLE hDevice, CONST D3DDDIARG_DRAWINDEXEDPRIMITIVE2* pData, UINT dwIndicesSize, CONST VOID* pIndexBuffer, CONST UINT* pFlagBuffer)
    37213757{
     3758    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    37223759    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    37233760    Assert(0);
     
    37283765static HRESULT APIENTRY vboxWddmDDevVolBlt(HANDLE hDevice, CONST D3DDDIARG_VOLUMEBLT* pData)
    37293766{
     3767    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    37303768    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    37313769    Assert(0);
     
    37363774static HRESULT APIENTRY vboxWddmDDevBufBlt(HANDLE hDevice, CONST D3DDDIARG_BUFFERBLT* pData)
    37373775{
     3776    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    37383777    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    37393778    Assert(0);
     
    37443783static HRESULT APIENTRY vboxWddmDDevTexBlt(HANDLE hDevice, CONST D3DDDIARG_TEXBLT* pData)
    37453784{
     3785    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    37463786    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    37473787    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    38633903static HRESULT APIENTRY vboxWddmDDevStateSet(HANDLE hDevice, D3DDDIARG_STATESET* pData)
    38643904{
     3905    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    38653906    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    38663907    Assert(0);
     
    38703911static HRESULT APIENTRY vboxWddmDDevSetPriority(HANDLE hDevice, CONST D3DDDIARG_SETPRIORITY* pData)
    38713912{
     3913    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    38723914    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    38733915    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     
    38863928static HRESULT APIENTRY vboxWddmDDevClear(HANDLE hDevice, CONST D3DDDIARG_CLEAR* pData, UINT NumRect, CONST RECT* pRect)
    38873929{
     3930    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    38883931    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    38893932    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    39013944static HRESULT APIENTRY vboxWddmDDevUpdatePalette(HANDLE hDevice, CONST D3DDDIARG_UPDATEPALETTE* pData, CONST PALETTEENTRY* pPaletteData)
    39023945{
     3946    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39033947    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39043948    Assert(0);
     
    39093953static HRESULT APIENTRY vboxWddmDDevSetPalette(HANDLE hDevice, CONST D3DDDIARG_SETPALETTE* pData)
    39103954{
     3955    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39113956    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39123957    Assert(0);
     
    39173962static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConst(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONST* pData , CONST VOID* pRegisters)
    39183963{
     3964    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39193965    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39203966    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    39313977static HRESULT APIENTRY vboxWddmDDevMultiplyTransform(HANDLE hDevice, CONST D3DDDIARG_MULTIPLYTRANSFORM* pData)
    39323978{
     3979    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39333980    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39343981    Assert(0);
     
    39383985static HRESULT APIENTRY vboxWddmDDevSetTransform(HANDLE hDevice, CONST D3DDDIARG_SETTRANSFORM* pData)
    39393986{
     3987    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39403988    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39413989    Assert(0);
     
    39453993static HRESULT APIENTRY vboxWddmDDevSetViewport(HANDLE hDevice, CONST D3DDDIARG_VIEWPORTINFO* pData)
    39463994{
     3995    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39473996    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39483997    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    39604009static HRESULT APIENTRY vboxWddmDDevSetZRange(HANDLE hDevice, CONST D3DDDIARG_ZRANGE* pData)
    39614010{
     4011    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39624012    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39634013    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    39734023static HRESULT APIENTRY vboxWddmDDevSetMaterial(HANDLE hDevice, CONST D3DDDIARG_SETMATERIAL* pData)
    39744024{
     4025    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39754026    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39764027    Assert(0);
     
    39804031static HRESULT APIENTRY vboxWddmDDevSetLight(HANDLE hDevice, CONST D3DDDIARG_SETLIGHT* pData, CONST D3DDDI_LIGHT* pLightProperties)
    39814032{
     4033    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39824034    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39834035    Assert(0);
     
    39874039static HRESULT APIENTRY vboxWddmDDevCreateLight(HANDLE hDevice, CONST D3DDDIARG_CREATELIGHT* pData)
    39884040{
     4041    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39894042    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39904043    Assert(0);
     
    39944047static HRESULT APIENTRY vboxWddmDDevDestroyLight(HANDLE hDevice, CONST D3DDDIARG_DESTROYLIGHT* pData)
    39954048{
     4049    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    39964050    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    39974051    Assert(0);
     
    40014055static HRESULT APIENTRY vboxWddmDDevSetClipPlane(HANDLE hDevice, CONST D3DDDIARG_SETCLIPPLANE* pData)
    40024056{
     4057    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    40034058    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    40044059    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    40134068static HRESULT APIENTRY vboxWddmDDevGetInfo(HANDLE hDevice, UINT DevInfoID, VOID* pDevInfoStruct, UINT DevInfoSize)
    40144069{
     4070    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    40154071    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    40164072    HRESULT hr = S_OK;
     
    40424098static HRESULT APIENTRY vboxWddmDDevLock(HANDLE hDevice, D3DDDIARG_LOCK* pData)
    40434099{
     4100    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    40444101    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    40454102    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    44344491static HRESULT APIENTRY vboxWddmDDevUnlock(HANDLE hDevice, CONST D3DDDIARG_UNLOCK* pData)
    44354492{
     4493    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    44364494    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    44374495    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    45904648static HRESULT APIENTRY vboxWddmDDevLockAsync(HANDLE hDevice, D3DDDIARG_LOCKASYNC* pData)
    45914649{
     4650    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    45924651    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    45934652    Assert(0);
     
    45974656static HRESULT APIENTRY vboxWddmDDevUnlockAsync(HANDLE hDevice, CONST D3DDDIARG_UNLOCKASYNC* pData)
    45984657{
     4658    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    45994659    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    46004660    Assert(0);
     
    46044664static HRESULT APIENTRY vboxWddmDDevRename(HANDLE hDevice, CONST D3DDDIARG_RENAME* pData)
    46054665{
     4666    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    46064667    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    46074668    Assert(0);
     
    46544715static HRESULT APIENTRY vboxWddmDDevCreateResource(HANDLE hDevice, D3DDDIARG_CREATERESOURCE* pResource)
    46554716{
     4717    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    46564718    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    46574719    HRESULT hr = S_OK;
     
    51835245static HRESULT APIENTRY vboxWddmDDevDestroyResource(HANDLE hDevice, HANDLE hResource)
    51845246{
     5247    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    51855248    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    51865249    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    52645327static HRESULT APIENTRY vboxWddmDDevSetDisplayMode(HANDLE hDevice, CONST D3DDDIARG_SETDISPLAYMODE* pData)
    52655328{
     5329    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    52665330    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    52675331    HRESULT hr = S_OK;
     
    53025366static HRESULT APIENTRY vboxWddmDDevPresent(HANDLE hDevice, CONST D3DDDIARG_PRESENT* pData)
    53035367{
     5368    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    53045369    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    53055370    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     5371//    VBOXDISPPROFILE_DDI_CHKDUMPRESET(pDevice);
    53065372    Assert(pDevice);
    53075373    HRESULT hr = S_OK;
     
    55345600static HRESULT APIENTRY vboxWddmDDevFlush(HANDLE hDevice)
    55355601{
     5602    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    55365603    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    55375604    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    55845651static HRESULT APIENTRY vboxWddmDDevCreateVertexShaderDecl(HANDLE hDevice, D3DDDIARG_CREATEVERTEXSHADERDECL* pData, CONST D3DDDIVERTEXELEMENT* pVertexElements)
    55855652{
     5653    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    55865654    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    55875655    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56305698static HRESULT APIENTRY vboxWddmDDevSetVertexShaderDecl(HANDLE hDevice, HANDLE hShaderHandle)
    56315699{
     5700    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56325701    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56335702    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56435712static HRESULT APIENTRY vboxWddmDDevDeleteVertexShaderDecl(HANDLE hDevice, HANDLE hShaderHandle)
    56445713{
     5714    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56455715    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56465716    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56545724static HRESULT APIENTRY vboxWddmDDevCreateVertexShaderFunc(HANDLE hDevice, D3DDDIARG_CREATEVERTEXSHADERFUNC* pData, CONST UINT* pCode)
    56555725{
     5726    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56565727    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56575728    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56725743static HRESULT APIENTRY vboxWddmDDevSetVertexShaderFunc(HANDLE hDevice, HANDLE hShaderHandle)
    56735744{
     5745    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56745746    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56755747    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56855757static HRESULT APIENTRY vboxWddmDDevDeleteVertexShaderFunc(HANDLE hDevice, HANDLE hShaderHandle)
    56865758{
     5759    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56875760    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56885761    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    56965769static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConstI(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONSTI* pData, CONST INT* pRegisters)
    56975770{
     5771    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    56985772    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    56995773    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    57075781static HRESULT APIENTRY vboxWddmDDevSetVertexShaderConstB(HANDLE hDevice, CONST D3DDDIARG_SETVERTEXSHADERCONSTB* pData, CONST BOOL* pRegisters)
    57085782{
     5783    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57095784    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57105785    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    57185793static HRESULT APIENTRY vboxWddmDDevSetScissorRect(HANDLE hDevice, CONST RECT* pRect)
    57195794{
     5795    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57205796    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57215797    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    57295805static HRESULT APIENTRY vboxWddmDDevSetStreamSource(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCE* pData)
    57305806{
     5807    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57315808    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57325809    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    57675844static HRESULT APIENTRY vboxWddmDDevSetStreamSourceFreq(HANDLE hDevice, CONST D3DDDIARG_SETSTREAMSOURCEFREQ* pData)
    57685845{
     5846    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57695847    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57705848    Assert(0);
     
    57745852static HRESULT APIENTRY vboxWddmDDevSetConvolutionKernelMono(HANDLE hDevice, CONST D3DDDIARG_SETCONVOLUTIONKERNELMONO* pData)
    57755853{
     5854    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57765855    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57775856    Assert(0);
     
    57815860static HRESULT APIENTRY vboxWddmDDevComposeRects(HANDLE hDevice, CONST D3DDDIARG_COMPOSERECTS* pData)
    57825861{
     5862    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    57835863    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    57845864    Assert(0);
     
    58505930static HRESULT APIENTRY vboxWddmDDevBlt(HANDLE hDevice, CONST D3DDDIARG_BLT* pData)
    58515931{
     5932    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    58525933    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    58535934    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    58795960                    && pSrcSwapchain->pRenderTargetFbCopy
    58805961                    && vboxWddmSwapchainGetFb(pSrcSwapchain)->pAlloc == pSrcAlloc
    5881 #ifdef VBOXDISP_WITH_WINE_BB_WORKAROUND
     5962# ifdef VBOXDISP_WITH_WINE_BB_WORKAROUND
    58825963                    && vboxWddmSwapchainNumRTs(pSrcSwapchain) > 1 /* work-around wine backbuffer */
    5883 #endif
     5964# endif
    58845965                    )
    58855966            {
     
    59005981//                Assert(pData->SrcRect.right == pSrcAlloc->SurfDesc.width);
    59015982//                Assert(pData->SrcRect.bottom == pSrcAlloc->SurfDesc.height);
    5902 #if 0
     5983# if 0
    59035984                if (pData->DstRect.left == 0 && pData->DstRect.top == 0
    59045985                        && pData->DstRect.right == pDstAlloc->SurfDesc.width
     
    59165997                }
    59175998                else
    5918 #endif
     5999# endif
    59196000                {
    59206001                    pSrcSurfIf = pSrcSwapchain->pRenderTargetFbCopy;
     
    61246205static HRESULT APIENTRY vboxWddmDDevColorFill(HANDLE hDevice, CONST D3DDDIARG_COLORFILL* pData)
    61256206{
     6207    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    61266208    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    61276209    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    61486230static HRESULT APIENTRY vboxWddmDDevDepthFill(HANDLE hDevice, CONST D3DDDIARG_DEPTHFILL* pData)
    61496231{
     6232    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    61506233    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    61516234    Assert(0);
     
    61556238static HRESULT APIENTRY vboxWddmDDevCreateQuery(HANDLE hDevice, D3DDDIARG_CREATEQUERY* pData)
    61566239{
     6240    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    61576241    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    61586242    HRESULT hr = S_OK;
     
    61816265static HRESULT APIENTRY vboxWddmDDevDestroyQuery(HANDLE hDevice, HANDLE hQuery)
    61826266{
     6267    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    61836268    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    61846269    HRESULT hr = S_OK;
     
    61916276static HRESULT APIENTRY vboxWddmDDevIssueQuery(HANDLE hDevice, CONST D3DDDIARG_ISSUEQUERY* pData)
    61926277{
     6278    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    61936279    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    61946280    HRESULT hr = S_OK;
     
    62016287static HRESULT APIENTRY vboxWddmDDevGetQueryData(HANDLE hDevice, CONST D3DDDIARG_GETQUERYDATA* pData)
    62026288{
     6289    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62036290    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62046291    HRESULT hr = S_OK;
     
    62236310static HRESULT APIENTRY vboxWddmDDevSetRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETRENDERTARGET* pData)
    62246311{
     6312    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62256313    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62266314    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    62386326static HRESULT APIENTRY vboxWddmDDevSetDepthStencil(HANDLE hDevice, CONST D3DDDIARG_SETDEPTHSTENCIL* pData)
    62396327{
     6328    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62406329    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62416330    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    62576346static HRESULT APIENTRY vboxWddmDDevGenerateMipSubLevels(HANDLE hDevice, CONST D3DDDIARG_GENERATEMIPSUBLEVELS* pData)
    62586347{
     6348    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62596349    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62606350    Assert(0);
     
    62646354static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConstI(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONSTI* pData, CONST INT* pRegisters)
    62656355{
     6356    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62666357    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62676358    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    62756366static HRESULT APIENTRY vboxWddmDDevSetPixelShaderConstB(HANDLE hDevice, CONST D3DDDIARG_SETPIXELSHADERCONSTB* pData, CONST BOOL* pRegisters)
    62766367{
     6368    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62776369    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62786370    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    62866378static HRESULT APIENTRY vboxWddmDDevCreatePixelShader(HANDLE hDevice, D3DDDIARG_CREATEPIXELSHADER* pData, CONST UINT* pCode)
    62876379{
     6380    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    62886381    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    62896382    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    63046397static HRESULT APIENTRY vboxWddmDDevDeletePixelShader(HANDLE hDevice, HANDLE hShaderHandle)
    63056398{
     6399    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63066400    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63076401    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    63156409static HRESULT APIENTRY vboxWddmDDevCreateDecodeDevice(HANDLE hDevice, D3DDDIARG_CREATEDECODEDEVICE* pData)
    63166410{
     6411    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63176412    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63186413    Assert(0);
     
    63226417static HRESULT APIENTRY vboxWddmDDevDestroyDecodeDevice(HANDLE hDevice, HANDLE hDecodeDevice)
    63236418{
     6419    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63246420    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63256421    Assert(0);
     
    63296425static HRESULT APIENTRY vboxWddmDDevSetDecodeRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETDECODERENDERTARGET* pData)
    63306426{
     6427    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63316428    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63326429    Assert(0);
     
    63366433static HRESULT APIENTRY vboxWddmDDevDecodeBeginFrame(HANDLE hDevice, D3DDDIARG_DECODEBEGINFRAME* pData)
    63376434{
     6435    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63386436    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63396437    Assert(0);
     
    63436441static HRESULT APIENTRY vboxWddmDDevDecodeEndFrame(HANDLE hDevice, D3DDDIARG_DECODEENDFRAME* pData)
    63446442{
     6443    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63456444    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63466445    Assert(0);
     
    63506449static HRESULT APIENTRY vboxWddmDDevDecodeExecute(HANDLE hDevice, CONST D3DDDIARG_DECODEEXECUTE* pData)
    63516450{
     6451    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63526452    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63536453    Assert(0);
     
    63576457static HRESULT APIENTRY vboxWddmDDevDecodeExtensionExecute(HANDLE hDevice, CONST D3DDDIARG_DECODEEXTENSIONEXECUTE* pData)
    63586458{
     6459    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63596460    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63606461    Assert(0);
     
    63646465static HRESULT APIENTRY vboxWddmDDevCreateVideoProcessDevice(HANDLE hDevice, D3DDDIARG_CREATEVIDEOPROCESSDEVICE* pData)
    63656466{
     6467    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63666468    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63676469    Assert(0);
     
    63716473static HRESULT APIENTRY vboxWddmDDevDestroyVideoProcessDevice(HANDLE hDevice, HANDLE hVideoProcessor)
    63726474{
     6475    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63736476    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63746477    Assert(0);
     
    63786481static HRESULT APIENTRY vboxWddmDDevVideoProcessBeginFrame(HANDLE hDevice, HANDLE hVideoProcess)
    63796482{
     6483    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63806484    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63816485    Assert(0);
     
    63856489static HRESULT APIENTRY vboxWddmDDevVideoProcessEndFrame(HANDLE hDevice, D3DDDIARG_VIDEOPROCESSENDFRAME* pData)
    63866490{
     6491    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63876492    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63886493    Assert(0);
     
    63926497static HRESULT APIENTRY vboxWddmDDevSetVideoProcessRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETVIDEOPROCESSRENDERTARGET* pData)
    63936498{
     6499    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    63946500    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    63956501    Assert(0);
     
    63996505static HRESULT APIENTRY vboxWddmDDevVideoProcessBlt(HANDLE hDevice, CONST D3DDDIARG_VIDEOPROCESSBLT* pData)
    64006506{
     6507    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64016508    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64026509    Assert(0);
     
    64066513static HRESULT APIENTRY vboxWddmDDevCreateExtensionDevice(HANDLE hDevice, D3DDDIARG_CREATEEXTENSIONDEVICE* pData)
    64076514{
     6515    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64086516    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64096517    Assert(0);
     
    64136521static HRESULT APIENTRY vboxWddmDDevDestroyExtensionDevice(HANDLE hDevice, HANDLE hExtension)
    64146522{
     6523    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64156524    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64166525    Assert(0);
     
    64206529static HRESULT APIENTRY vboxWddmDDevExtensionExecute(HANDLE hDevice, CONST D3DDDIARG_EXTENSIONEXECUTE* pData)
    64216530{
     6531    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64226532    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64236533    Assert(0);
     
    64276537static HRESULT APIENTRY vboxWddmDDevDestroyDevice(IN HANDLE hDevice)
    64286538{
     6539    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64296540    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64306541
    64316542    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     6543    VBOXDISPPROFILE_DDI_DUMPRESET(pDevice);
    64326544    PVBOXWDDMDISP_ADAPTER pAdapter = pDevice->pAdapter;
    64336545//    Assert(!pDevice->cScreens);
     
    64556567static HRESULT APIENTRY vboxWddmDDevCreateOverlay(HANDLE hDevice, D3DDDIARG_CREATEOVERLAY* pData)
    64566568{
     6569    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    64576570    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    64586571    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    65186631static HRESULT APIENTRY vboxWddmDDevUpdateOverlay(HANDLE hDevice, CONST D3DDDIARG_UPDATEOVERLAY* pData)
    65196632{
     6633    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    65206634    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    65216635    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    65616675static HRESULT APIENTRY vboxWddmDDevFlipOverlay(HANDLE hDevice, CONST D3DDDIARG_FLIPOVERLAY* pData)
    65626676{
     6677    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    65636678    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    65646679    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    65976712static HRESULT APIENTRY vboxWddmDDevGetOverlayColorControls(HANDLE hDevice, D3DDDIARG_GETOVERLAYCOLORCONTROLS* pData)
    65986713{
     6714    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    65996715    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    66006716    Assert(0);
     
    66046720static HRESULT APIENTRY vboxWddmDDevSetOverlayColorControls(HANDLE hDevice, CONST D3DDDIARG_SETOVERLAYCOLORCONTROLS* pData)
    66056721{
     6722    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    66066723    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    66076724    Assert(0);
     
    66116728static HRESULT APIENTRY vboxWddmDDevDestroyOverlay(HANDLE hDevice, CONST D3DDDIARG_DESTROYOVERLAY* pData)
    66126729{
     6730    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    66136731    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    66146732    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    66326750static HRESULT APIENTRY vboxWddmDDevQueryResourceResidency(HANDLE hDevice, CONST D3DDDIARG_QUERYRESOURCERESIDENCY* pData)
    66336751{
     6752    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    66346753    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    66356754    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    66776796static HRESULT APIENTRY vboxWddmDDevOpenResource(HANDLE hDevice, D3DDDIARG_OPENRESOURCE* pData)
    66786797{
     6798    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    66796799    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    66806800    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     
    68286948static HRESULT APIENTRY vboxWddmDDevGetCaptureAllocationHandle(HANDLE hDevice, D3DDDIARG_GETCAPTUREALLOCATIONHANDLE* pData)
    68296949{
     6950    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    68306951    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    68316952    Assert(0);
     
    68366957static HRESULT APIENTRY vboxWddmDDevCaptureToSysMem(HANDLE hDevice, CONST D3DDDIARG_CAPTURETOSYSMEM* pData)
    68376958{
     6959    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    68386960    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    68396961    Assert(0);
     
    68446966static HRESULT APIENTRY vboxWddmDispCreateDevice (IN HANDLE hAdapter, IN D3DDDIARG_CREATEDEVICE* pCreateData)
    68456967{
     6968    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    68466969    HRESULT hr = S_OK;
    68476970    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p), Interface(%d), Version(%d)\n", hAdapter, pCreateData->Interface, pCreateData->Version));
     
    70637186static HRESULT APIENTRY vboxWddmDispCloseAdapter (IN HANDLE hAdapter)
    70647187{
     7188    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    70657189    vboxVDbgPrint(("==> "__FUNCTION__", hAdapter(0x%p)\n", hAdapter));
    70667190
     
    70877211HRESULT APIENTRY OpenAdapter (__inout D3DDDIARG_OPENADAPTER*  pOpenData)
    70887212{
     7213    VBOXDISPPROFILE_FUNCTION_DDI_PROLOGUE();
    70897214    vboxVDbgPrint(("==> "__FUNCTION__"\n"));
    70907215
     
    72197344}
    72207345
     7346#ifdef VBOXWDDMDISP_DEBUG_PRINT
     7347VOID 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}
     7371VOID 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}
     7388VOID 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
    72217400#ifdef VBOXWDDMDISP_DEBUG
    72227401
     
    73297508}
    73307509
    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     else
    7368     {
    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 
    73837510static PVOID g_VBoxWDbgVEHandler = NULL;
    73847511LONG WINAPI vboxVDbgVectoredHandler(struct _EXCEPTION_POINTERS *pExceptionInfo)
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h

    r32325 r32739  
    4141#endif
    4242
     43#if defined(VBOXWDDMDISP_DEBUG) || defined(VBOX_WDDMDISP_WITH_PROFILE)
     44# define VBOXWDDMDISP_DEBUG_PRINT
     45#endif
     46
    4347#if 0
    4448# ifdef Assert
     
    5660#endif
    5761
     62#ifdef VBOXWDDMDISP_DEBUG_PRINT
     63VOID vboxVDbgDoMpPrintF(const PVBOXWDDMDISP_DEVICE pDevice, LPCSTR szString, ...);
     64VOID vboxVDbgDoPrint(LPCSTR szString, ...);
     65#endif
     66
    5867#ifdef VBOXWDDMDISP_DEBUG
    5968extern bool g_VDbgTstDumpEnable;
     
    6372void vboxVDbgDoMpPrintRect(const PVBOXWDDMDISP_DEVICE pDevice, const char * pPrefix, const RECT *pRect, const char * pSuffix);
    6473void 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, ...);
    6774void vboxVDbgVEHandlerRegister();
    6875void vboxVDbgVEHandlerUnregister();
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/Makefile.kmk

    r32681 r32739  
    8989  endif
    9090 endif
    91  VBoxVideoWddm_DEFS       += LOG_ENABLED
     91 #VBoxVideoWddm_DEFS       += LOG_ENABLED
    9292 #VBoxVideoWddm_DEFS       += VBOX_WITH_MULTIMONITOR_FIX
    9393 #VBoxVideoWddm_DEFS       += LOG_TO_BACKDOOR
Note: See TracChangeset for help on using the changeset viewer.

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