VirtualBox

Ignore:
Timestamp:
Nov 11, 2010 12:42:20 PM (14 years ago)
Author:
vboxsync
Message:

wddm: vidpn more logging + cosmetics

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVidPn.cpp

    r33980 r33983  
    17491749        case _t: return #_t;
    17501750#define VBOXVIDPNDUMP_STRCASE_UNKNOWN() \
    1751         default: return "Unknown";
     1751        default: Assert(0); return "Unknown";
    17521752
    17531753#define VBOXVIDPNDUMP_STRFLAGS(_v, _t) \
     
    18861886        VBOXVIDPNDUMP_STRCASE(D3DDDI_VSSLO_INTERLACED_LOWERFIELDFIRST);
    18871887        VBOXVIDPNDUMP_STRCASE(D3DDDI_VSSLO_OTHER);
     1888        VBOXVIDPNDUMP_STRCASE_UNKNOWN();
     1889    }
     1890}
     1891
     1892const char* vboxVidPnDumpStrCFMPivotType(D3DKMDT_ENUMCOFUNCMODALITY_PIVOT_TYPE EnumPivotType)
     1893{
     1894    switch (EnumPivotType)
     1895    {
     1896        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_UNINITIALIZED);
     1897        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_VIDPNSOURCE);
     1898        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_VIDPNTARGET);
     1899        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_SCALING);
     1900        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_ROTATION);
     1901        VBOXVIDPNDUMP_STRCASE(D3DKMDT_EPT_NOPIVOT);
    18881902        VBOXVIDPNDUMP_STRCASE_UNKNOWN();
    18891903    }
     
    21352149void vboxVidPnDumpSourceModeSet(PDEVICE_EXTENSION pDevExt, const D3DKMDT_HVIDPN hVidPn, const DXGK_VIDPN_INTERFACE* pVidPnInterface, D3DDDI_VIDEO_PRESENT_SOURCE_ID VidPnSourceId)
    21362150{
    2137     drprintf(("  >>>***SourceMode Set for Source(%d)***\n", VidPnSourceId));
     2151    drprintf(("  >>>+++SourceMode Set for Source(%d)+++\n", VidPnSourceId));
    21382152    D3DKMDT_HVIDPNSOURCEMODESET hCurVidPnSourceModeSet;
    21392153    const DXGK_VIDPNSOURCEMODESET_INTERFACE *pCurVidPnSourceModeSetInterface;
     
    21612175    }
    21622176
    2163     drprintf(("  <<<***End Of SourceMode Set for Source(%d)***\n", VidPnSourceId));
     2177    drprintf(("  <<<+++End Of SourceMode Set for Source(%d)+++\n", VidPnSourceId));
    21642178}
    21652179
     
    21742188void vboxVidPnDumpTargetModeSet(PDEVICE_EXTENSION pDevExt, const D3DKMDT_HVIDPN hVidPn, const DXGK_VIDPN_INTERFACE* pVidPnInterface, D3DDDI_VIDEO_PRESENT_TARGET_ID VidPnTargetId)
    21752189{
    2176     drprintf(("  >>>***TargetMode Set for Target(%d)***\n", VidPnTargetId));
     2190    drprintf(("  >>>---TargetMode Set for Target(%d)---\n", VidPnTargetId));
    21772191    D3DKMDT_HVIDPNTARGETMODESET hCurVidPnTargetModeSet;
    21782192    const DXGK_VIDPNTARGETMODESET_INTERFACE *pCurVidPnTargetModeSetInterface;
     
    22002214    }
    22012215
    2202     drprintf(("  <<<***End Of TargetMode Set for Target(%d)***\n", VidPnTargetId));
     2216    drprintf(("  <<<---End Of TargetMode Set for Target(%d)---\n", VidPnTargetId));
    22032217}
    22042218
     
    22412255}
    22422256
     2257void vboxVidPnDumpCofuncModalityArg(const char *pPrefix, CONST DXGKARG_ENUMVIDPNCOFUNCMODALITY* CONST  pEnumCofuncModalityArg, const char *pSuffix)
     2258{
     2259    drprintf(("%sPivotType(%s), SourceId(0x%x), TargetId(0x%x),%s", pPrefix, vboxVidPnDumpStrCFMPivotType(pEnumCofuncModalityArg->EnumPivotType),
     2260            pEnumCofuncModalityArg->EnumPivot.VidPnSourceId, pEnumCofuncModalityArg->EnumPivot.VidPnTargetId, pSuffix));
     2261}
     2262
    22432263void vboxVidPnDumpPath(struct _DEVICE_EXTENSION* pDevExt, const D3DKMDT_HVIDPN hVidPn, const DXGK_VIDPN_INTERFACE* pVidPnInterface,
    22442264        const D3DKMDT_VIDPN_PRESENT_PATH *pVidPnPresentPathInfo)
    22452265{
    2246     drprintf((" >>Start Dump VidPn Path>>\n"));
     2266    drprintf((" >>**** Start Dump VidPn Path ****>>\n"));
    22472267    drprintf(("VidPnSourceId(%d),  VidPnTargetId(%d)\n",
    22482268            pVidPnPresentPathInfo->VidPnSourceId, pVidPnPresentPathInfo->VidPnTargetId));
     
    22622282    vboxVidPnDumpGammaRamp("GammaRamp: ", &pVidPnPresentPathInfo->GammaRamp, "\n");
    22632283
    2264     drprintf((" <<Stop Dump VidPn Path<<\n"));
     2284    drprintf((" <<**** Stop Dump VidPn Path ****<<\n"));
    22652285}
    22662286
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoVidPn.h

    r33980 r33983  
    131131
    132132void vboxVidPnDumpVidPn(const char * pPrefix, PDEVICE_EXTENSION pDevExt, D3DKMDT_HVIDPN hVidPn, const DXGK_VIDPN_INTERFACE* pVidPnInterface, const char * pSuffix);
     133void vboxVidPnDumpCofuncModalityArg(const char *pPrefix, CONST DXGKARG_ENUMVIDPNCOFUNCMODALITY* CONST  pEnumCofuncModalityArg, const char *pSuffix);
    133134#endif /* #ifndef ___VBoxVideoVidPn_h___ */
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r33980 r33983  
    37073707
    37083708#ifdef DEBUG_misha
    3709     drprintf(("The Given VidPn is %ssupported", pIsSupportedVidPnArg->IsVidPnSupported ? "", "!!NOT!! "));
     3709    drprintf(("The Given VidPn is %ssupported", pIsSupportedVidPnArg->IsVidPnSupported ? "" : "!!NOT!! "));
    37103710#endif
    37113711
     
    38303830    {
    38313831#ifdef DEBUG_misha
    3832         vboxVidPnDumpVidPn("\n>>>>MODALITY VidPN (IN) : >>>>\n", pDevExt, pEnumCofuncModalityArg->hConstrainingVidPn, pVidPnInterface, "<<<<<<<<<<<<<<<<<<<<\n\n");
     3832        vboxVidPnDumpCofuncModalityArg(">>>>MODALITY Args: ", pEnumCofuncModalityArg, "\n");
     3833        vboxVidPnDumpVidPn(">>>>MODALITY VidPN (IN) : >>>>\n", pDevExt, pEnumCofuncModalityArg->hConstrainingVidPn, pVidPnInterface, "<<<<<<<<<<<<<<<<<<<<\n\n");
    38333834#endif
    38343835
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