tgsi: Don't dump parenthesis for negation.
authorJosé Fonseca <jfonseca@vmware.com>
Sat, 26 Dec 2009 10:59:46 +0000 (10:59 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sat, 26 Dec 2009 10:59:46 +0000 (10:59 +0000)
It doesn't seem necessary, and more importantly, tgsi_parse doesn't know
how to read them.

src/gallium/auxiliary/tgsi/tgsi_dump.c

index a16f7c728e7f523606363fb7d0c719dd8c73daf2..2c65ff16d81aa402a8fe67fbe8864910ee08f3be 100644 (file)
@@ -506,7 +506,7 @@ iter_instruction(
       CHR( ' ' );
 
       if (src->Register.Negate)
-         TXT( "-(" );
+         CHR( '-' );
       if (src->Register.Absolute)
          CHR( '|' );
 
@@ -525,8 +525,6 @@ iter_instruction(
 
       if (src->Register.Absolute)
          CHR( '|' );
-      if (src->Register.Negate)
-         CHR( ')' );
 
       first_reg = FALSE;
    }