From 8b67159e9a8f2e3782dfb78bc612e2753395563a Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 7 Sep 2010 10:23:30 -0700 Subject: [PATCH] r300/compiler: Print the presub subtract operation in the correct order --- .../drivers/dri/r300/compiler/radeon_program_print.c | 12 ++++++------ 1 file 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 - "); -- 2.30.2