Mesa (master): r300/compiler: Print the presub subtract operation in the correct order

Tom Stellard tstellar at kemper.freedesktop.org
Sat Sep 11 02:54:10 UTC 2010


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

Author: Tom Stellard <tstellar at gmail.com>
Date:   Tue Sep  7 10:23:30 2010 -0700

r300/compiler: Print the presub subtract operation in the correct order

---

 .../dri/r300/compiler/radeon_program_print.c       |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/compiler/radeon_program_print.c b/src/mesa/drivers/dri/r300/compiler/radeon_program_print.c
index 0161219..618ab5a 100644
--- a/src/mesa/drivers/dri/r300/compiler/radeon_program_print.c
+++ b/src/mesa/drivers/dri/r300/compiler/radeon_program_print.c
@@ -154,18 +154,18 @@ static void rc_print_presub_instruction(FILE * f,
 				inst.SrcReg[0].Index,inst.SrcReg[0].RelAddr);
 		break;
 	case RC_PRESUB_SUB:
-		rc_print_register(f, inst.SrcReg[0].File,
-				inst.SrcReg[0].Index,inst.SrcReg[0].RelAddr);
-		fprintf(f, " - ");
 		rc_print_register(f, inst.SrcReg[1].File,
 				inst.SrcReg[1].Index,inst.SrcReg[1].RelAddr);
-		break;
-	case RC_PRESUB_ADD:
+		fprintf(f, " - ");
 		rc_print_register(f, inst.SrcReg[0].File,
 				inst.SrcReg[0].Index,inst.SrcReg[0].RelAddr);
-		fprintf(f, " + ");
+		break;
+	case RC_PRESUB_ADD:
 		rc_print_register(f, inst.SrcReg[1].File,
 				inst.SrcReg[1].Index,inst.SrcReg[1].RelAddr);
+		fprintf(f, " + ");
+		rc_print_register(f, inst.SrcReg[0].File,
+				inst.SrcReg[0].Index,inst.SrcReg[0].RelAddr);
 		break;
 	case RC_PRESUB_INV:
 		fprintf(f, "1 - ");




More information about the mesa-commit mailing list