tgsi: include more of the register info in debug dumps
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Feb 2008 10:02:59 +0000 (10:02 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Feb 2008 12:36:32 +0000 (12:36 +0000)
src/mesa/pipe/tgsi/exec/tgsi_sse2.c

index 40bacf8552612401dcb73379d5b9441a172cb28b..7d82a4b19b3e8aa81517ff30d1303ed28e88e432 100755 (executable)
@@ -44,6 +44,9 @@ static void
 _print_reg(
    struct x86_reg reg )
 {
+   if (reg.mod != mod_REG) 
+      debug_printf( "[" );
+      
    switch( reg.file ) {
    case file_REG32:
       switch( reg.idx ) {
@@ -83,6 +86,13 @@ _print_reg(
       assert( 0 );
       break;
    }
+
+   if (reg.mod == mod_DISP8 ||
+       reg.mod == mod_DISP32)
+      debug_printf("+%d", reg.disp);
+
+   if (reg.mod != mod_REG) 
+      debug_printf( "]" );
 }
 
 static void