Mesa (master): tgsi: Don't dump parenthesis for negation.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Sat Dec 26 05:18:00 PST 2009


Module: Mesa
Branch: master
Commit: 399190d13668ed457cf5d6bbbefe908a95bad289
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=399190d13668ed457cf5d6bbbefe908a95bad289

Author: José Fonseca <jfonseca at vmware.com>
Date:   Sat Dec 26 10:59:46 2009 +0000

tgsi: Don't dump parenthesis for negation.

It doesn't seem necessary, and more importantly, tgsi_parse doesn't know
how to read them.

---

 src/gallium/auxiliary/tgsi/tgsi_dump.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_dump.c b/src/gallium/auxiliary/tgsi/tgsi_dump.c
index a16f7c7..2c65ff1 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_dump.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_dump.c
@@ -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;
    }



More information about the mesa-commit mailing list