static void brw_wm_print_fp_insn( struct brw_wm_compile *c, struct brw_fp_instruction *inst ) { GLuint i; GLuint nr_args = brw_wm_nr_args(inst->opcode); print_opcode(inst->opcode); if (inst->dst.saturate) debug_printf("_SAT"); debug_printf(" "); if (inst->dst.indirect) debug_printf("["); debug_printf("%s[%d]", file_strings[inst->dst.file], inst->dst.index ); print_writemask(inst->dst.writemask); if (inst->dst.indirect) debug_printf("]"); debug_printf(nr_args ? ", " : "\n"); for (i = 0; i < nr_args; i++) { debug_printf("%s%s%s[%d]%s", inst->src[i].negate ? "-" : "", inst->src[i].abs ? "ABS(" : "", file_strings[inst->src[i].file], inst->src[i].index, inst->src[i].abs ? ")" : ""); print_swizzle(inst->src[i].swizzle); debug_printf("%s", i == nr_args - 1 ? "\n" : ", "); } }
static void print_vector_source(ppir_codegen_vec4_reg reg, const char *special, uint8_t swizzle, bool abs, bool neg) { if (neg) printf("-"); if (abs) printf("abs("); print_reg(reg, special); print_swizzle(swizzle); if (abs) printf(")"); }