From: Brian Date: Mon, 18 Dec 2006 23:21:58 +0000 (-0700) Subject: Check for inst->CondUpdate, print .C suffix. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b50280e95f3c044f53c0705d3a5619ebb2db4513;p=mesa.git Check for inst->CondUpdate, print .C suffix. --- diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c index 7e2e1b22c4b..4cd55d0bca8 100644 --- a/src/mesa/shader/prog_print.c +++ b/src/mesa/shader/prog_print.c @@ -206,16 +206,15 @@ _mesa_print_alu_instruction(const struct prog_instruction *inst, GLuint j; _mesa_printf("%s", opcode_string); + if (inst->CondUpdate) + _mesa_printf(".C"); /* frag prog only */ if (inst->SaturateMode == SATURATE_ZERO_ONE) _mesa_printf("_SAT"); if (inst->DstReg.File != PROGRAM_UNDEFINED) { - _mesa_printf(" %s[%d]%s", - program_file_string((enum register_file) inst->DstReg.File), - inst->DstReg.Index, - writemask_string(inst->DstReg.WriteMask)); + print_dst_reg(&inst->DstReg); } else { _mesa_printf(" ???");