aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Stellard <[email protected]>2010-09-07 10:23:30 -0700
committerTom Stellard <[email protected]>2010-09-10 18:18:10 -0700
commit8b67159e9a8f2e3782dfb78bc612e2753395563a (patch)
tree07f577a976ebb41fef2b89ca978047986a4aedbb
parente3fc210a4f93c41cd3d1601dd1c937388f117d97 (diff)
r300/compiler: Print the presub subtract operation in the correct order
-rw-r--r--src/mesa/drivers/dri/r300/compiler/radeon_program_print.c12
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 01612195810..618ab5a099b 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 - ");