From: Tom Stellard Date: Tue, 7 Sep 2010 17:23:30 +0000 (-0700) Subject: r300/compiler: Print the presub subtract operation in the correct order X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b67159e9a8f2e3782dfb78bc612e2753395563a;p=mesa.git r300/compiler: Print the presub subtract operation in the correct order --- 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 - ");