Lines Matching refs:srcs

162 static void dump_regs(FILE *fp, struct bifrost_regs srcs, bool first)
164 struct bifrost_reg_ctrl ctrl = DecodeRegCtrl(fp, srcs, first);
167 fprintf(fp, "slot 0: r%u ", get_reg0(srcs));
169 fprintf(fp, "slot 1: r%u ", get_reg1(srcs));
174 fprintf(fp, "slot 2: r%u (write FMA) ", srcs.reg2);
176 fprintf(fp, "slot 2: r%u (write lo FMA) ", srcs.reg2);
178 fprintf(fp, "slot 2: r%u (write hi FMA) ", srcs.reg2);
180 fprintf(fp, "slot 2: r%u (read) ", srcs.reg2);
183 fprintf(fp, "slot 3: r%u (write %s) ", srcs.reg3, slot3_fma);
185 fprintf(fp, "slot 3: r%u (write lo %s) ", srcs.reg3, slot3_fma);
187 fprintf(fp, "slot 3: r%u (write hi %s) ", srcs.reg3, slot3_fma);
189 if (srcs.fau_idx)
190 fprintf(fp, "fau %X ", srcs.fau_idx);
304 static void dump_fau_src(FILE *fp, struct bifrost_regs srcs, unsigned branch_offset, struct bi_constants *consts, bool high32)
306 if (srcs.fau_idx & 0x80) {
307 unsigned uniform = (srcs.fau_idx & 0x7f);
309 } else if (srcs.fau_idx >= 0x20) {
310 unsigned idx = const_fau_to_idx(srcs.fau_idx >> 4);
312 imm |= (srcs.fau_idx & 0xf);
320 switch (srcs.fau_idx) {
350 fprintf(fp, "blend_descriptor_%u", (unsigned) srcs.fau_idx - 8);
353 fprintf(fp, "XXX - reserved%u", (unsigned) srcs.fau_idx);
365 dump_src(FILE *fp, unsigned src, struct bifrost_regs srcs, unsigned branch_offset, struct bi_constants *consts, bool isFMA)
369 fprintf(fp, "r%u", get_reg0(srcs));
372 fprintf(fp, "r%u", get_reg1(srcs));
375 fprintf(fp, "r%u", srcs.reg2);
384 dump_fau_src(fp, srcs, branch_offset, consts, false);
387 dump_fau_src(fp, srcs, branch_offset, consts, true);