summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2008-02-13 10:02:59 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2008-02-13 12:36:32 +0000
commit7f342a20d2c7f59b8dd8daed21f3b44f5215a05a (patch)
tree51297b494f2fde8d07c4e3ec000a4b9492010218 /src/mesa
parente922adbe1d6c1764968377658ea92ae6de0585db (diff)
tgsi: include more of the register info in debug dumps
Diffstat (limited to 'src/mesa')
-rwxr-xr-xsrc/mesa/pipe/tgsi/exec/tgsi_sse2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
index 40bacf8552..7d82a4b19b 100755
--- a/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
+++ b/src/mesa/pipe/tgsi/exec/tgsi_sse2.c
@@ -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