VirtualBox

Changeset 52570 in vbox for trunk/src


Ignore:
Timestamp:
Sep 2, 2014 2:46:41 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95838
Message:

crOpenGL: debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack.py

    r52451 r52570  
    3030static void crUnpackExtendDbg(void);
    3131
    32 /*#define CR_UNPACK_DEBUG_OPCODES*/
    33 /*#define CR_UNPACK_DEBUG_LAST_OPCODES*/
     32#if 0 //def DEBUG_misha
     33//# define CR_UNPACK_DEBUG_OPCODES
     34# define CR_UNPACK_DEBUG_LAST_OPCODES
     35# define CR_UNPACK_DEBUG_PREV_OPCODES
     36#endif
     37
     38#ifdef CR_UNPACK_DEBUG_PREV_OPCODES
     39static GLenum g_VBoxDbgCrPrevOpcode = 0;
     40static GLenum g_VBoxDbgCrPrevExtendOpcode = 0;
     41#endif
    3442"""
    3543
     
    256264   
    257265        /*crDebug(\"Unpacking opcode \%d\", *unpack_opcodes);*/
     266#ifdef CR_UNPACK_DEBUG_PREV_OPCODES
     267        g_VBoxDbgCrPrevOpcode = *unpack_opcodes;
     268#endif
    258269        switch( *unpack_opcodes )
    259270        {"""
     
    323334print '\tGLenum extend_opcode = %s;' % ReadData( 4, 'GLenum' );
    324335print ''
     336print '#ifdef CR_UNPACK_DEBUG_PREV_OPCODES'
     337print '\tg_VBoxDbgCrPrevExtendOpcode = extend_opcode;'
     338print '#endif'
     339print ''
    325340print '\t/*crDebug(\"Unpacking extended opcode \%d", extend_opcode);*/'
    326341print '\tswitch( extend_opcode )'
     
    348363print '{'
    349364print '\tGLenum extend_opcode = %s;' % ReadData( 4, 'GLenum' );
     365print ''
     366print '#ifdef CR_UNPACK_DEBUG_PREV_OPCODES'
     367print '\tg_VBoxDbgCrPrevExtendOpcode = extend_opcode;'
     368print '#endif'
    350369print ''
    351370print '\t/*crDebug(\"Unpacking extended opcode \%d", extend_opcode);*/'
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