VirtualBox

Ignore:
Timestamp:
Feb 21, 2011 5:19:32 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispDbg.h

    r35658 r36046  
    2525 * the workaround so far is to pass the log info to the kernel driver and DbgPrint'ed from there,
    2626 * which is enabled by this define */
    27 //#  define VBOXWDDMDISP_DEBUG_PRINTDRV
     27#  define VBOXWDDMDISP_DEBUG_PRINTDRV
     28/* use OutputDebugString */
     29#  define VBOXWDDMDISP_DEBUG_PRINT
    2830/* adds vectored exception handler to be able to catch non-debug UM exceptions in kernel debugger */
    2931#  define VBOXWDDMDISP_DEBUG_VEHANDLER
     
    6062# define DbgPrintDrvFlow(_m) do { } while (0)
    6163#endif
     64
     65#ifdef VBOXWDDMDISP_DEBUG_PRINT
     66# define DbgPrintUsr(_m) do { vboxDispLogDbgPrintF _m; } while (0)
     67# define DbgPrintUsrRel(_m) do { vboxDispLogDbgPrintF _m; } while (0)
     68# define DbgPrintUsrFlow(_m) do { } while (0)
     69#else
     70# define DbgPrintUsr(_m) do { } while (0)
     71# define DbgPrintUsrRel(_m) do { } while (0)
     72# define DbgPrintUsrFlow(_m) do { } while (0)
     73#endif
    6274#define vboxVDbgPrint(_m) do { \
    6375        Log(_m); \
     76        DbgPrintUsr(_m); \
    6477        DbgPrintDrv(_m); \
    6578    } while (0)
    6679#define vboxVDbgPrintF(_m)  do { \
    6780        LogFlow(_m); \
     81        DbgPrintUsrFlow(_m); \
    6882        DbgPrintDrvFlow(_m); \
    6983    } while (0)
    7084#define vboxVDbgPrintR(_m)  do { \
    7185        LogRel(_m); \
     86        DbgPrintUsrRel(_m); \
    7287        DbgPrintDrvRel(_m); \
    7388    } while (0)
     
    8196void vboxDispLogDrvF(char * szString, ...);
    8297void vboxDispLogDrv(char * szString);
     98void vboxDispLogDbgPrintF(char * szString, ...);
    8399
    84100typedef struct VBOXWDDMDISP_ALLOCATION *PVBOXWDDMDISP_ALLOCATION;
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