• Home
  • Raw
  • Download

Lines Matching refs:fp

44 #define DEFINE_CASE(define, str) case define: { fprintf(fp, str); break; }
98 print_alu_opcode(FILE *fp, midgard_alu_op op) in print_alu_opcode() argument
101 fprintf(fp, "%s", alu_opcode_props[op].name); in print_alu_opcode()
103 fprintf(fp, "alu_op_%02X", op); in print_alu_opcode()
110 print_ld_st_opcode(FILE *fp, midgard_load_store_op op) in print_ld_st_opcode() argument
113 fprintf(fp, "%s", load_store_opcode_props[op].name); in print_ld_st_opcode()
115 fprintf(fp, "ldst_op_%02X", op); in print_ld_st_opcode()
173 print_alu_reg(disassemble_context *ctx, FILE *fp, unsigned reg, bool is_write) in print_alu_reg() argument
197 fprintf(fp, "TMP%u", reg - REGISTER_UNUSED); in print_alu_reg()
199 fprintf(fp, "%s%u", is_write ? "AT" : "TA", reg - REGISTER_TEXTURE_BASE); in print_alu_reg()
201 fprintf(fp, "AL%u", reg - REGISTER_LDST_BASE); in print_alu_reg()
203 fprintf(fp, "U%u", uniform_reg); in print_alu_reg()
205 fprintf(fp, "PC_SP"); in print_alu_reg()
207 fprintf(fp, "R%u", reg); in print_alu_reg()
211 print_ldst_write_reg(FILE *fp, unsigned reg) in print_ldst_write_reg() argument
216 fprintf(fp, "AL%u", reg - REGISTER_LDST_BASE); in print_ldst_write_reg()
220 fprintf(fp, "AT%u", reg - REGISTER_TEXTURE_BASE); in print_ldst_write_reg()
223 fprintf(fp, "PC_SP"); in print_ldst_write_reg()
226 fprintf(fp, "R%d", reg); in print_ldst_write_reg()
232 print_ldst_read_reg(FILE *fp, unsigned reg) in print_ldst_read_reg() argument
237 fprintf(fp, "AL%u", reg); in print_ldst_read_reg()
240 fprintf(fp, "PC_SP"); in print_ldst_read_reg()
243 fprintf(fp, "LOCAL_STORAGE_PTR"); in print_ldst_read_reg()
246 fprintf(fp, "LOCAL_THREAD_ID"); in print_ldst_read_reg()
249 fprintf(fp, "GROUP_ID"); in print_ldst_read_reg()
252 fprintf(fp, "GLOBAL_THREAD_ID"); in print_ldst_read_reg()
255 fprintf(fp, "0"); in print_ldst_read_reg()
263 print_tex_reg(FILE *fp, unsigned reg, bool is_write) in print_tex_reg() argument
271 fprintf(fp, "R%d", select); in print_tex_reg()
275 fprintf(fp, "AL%d", select); in print_tex_reg()
279 fprintf(fp, "%s%d", str, select); in print_tex_reg()
308 print_alu_outmod(FILE *fp, unsigned outmod, bool is_int, bool half) in print_alu_outmod() argument
316 fprintf(fp, ".shrink"); in print_alu_outmod()
318 mir_print_outmod(fp, outmod, is_int); in print_alu_outmod()
340 print_quad_word(FILE *fp, uint32_t *words, unsigned tabs) in print_quad_word() argument
345 fprintf(fp, "0x%08X%s ", words[i], i == 3 ? "" : ","); in print_quad_word()
347 fprintf(fp, "\n"); in print_quad_word()
382 print_vec_selectors_64(FILE *fp, unsigned swizzle, in print_vec_selectors_64() argument
400 fprintf(fp, "%c", components[a / 2]); in print_vec_selectors_64()
410 fprintf(fp, "%c", a >> 1 ? 'Y' : 'X'); in print_vec_selectors_64()
412 fprintf(fp, "[%c%c]", components[a], components[b]); in print_vec_selectors_64()
417 print_vec_selectors(FILE *fp, unsigned swizzle, in print_vec_selectors() argument
439 fprintf(fp, "%c", components[c]); in print_vec_selectors()
441 fprintf(fp, "%c", components[c+1]); in print_vec_selectors()
446 print_vec_swizzle(FILE *fp, unsigned swizzle, in print_vec_swizzle() argument
502 fprintf(fp, "."); in print_vec_swizzle()
506 print_vec_selectors_64(fp, swizzle, mode, expand, first_half, mask); in print_vec_swizzle()
511 print_vec_selectors(fp, swizzle, mode, first_half, mask, &mask_offs); in print_vec_swizzle()
513 print_vec_selectors(fp, swizzle, mode, second_half, mask, &mask_offs); in print_vec_swizzle()
517 print_scalar_constant(FILE *fp, unsigned src_binary, in print_scalar_constant() argument
524 fprintf(fp, "#"); in print_scalar_constant()
525 mir_print_constant_component(fp, consts, src->component, in print_scalar_constant()
532 print_vector_constants(FILE *fp, unsigned src_binary, in print_vector_constants() argument
549 fprintf(fp, "<"); in print_vector_constants()
551 fprintf(fp, "#"); in print_vector_constants()
615 fprintf(fp, ", "); in print_vector_constants()
617 mir_print_constant_component(fp, consts, c, alu->reg_mode, in print_vector_constants()
622 fprintf(fp, ">"); in print_vector_constants()
626 print_srcmod(FILE *fp, bool is_int, bool expands, unsigned mod, bool scalar) in print_srcmod() argument
632 fprintf(fp, "%s", srcmod_names_int[mod]); in print_srcmod()
635 fprintf(fp, ".abs"); in print_srcmod()
637 fprintf(fp, ".neg"); in print_srcmod()
639 fprintf(fp, ".widen"); in print_srcmod()
644 print_vector_src(disassemble_context *ctx, FILE *fp, unsigned src_binary, in print_vector_src() argument
654 print_alu_reg(ctx, fp, reg, false); in print_vector_src()
656 print_vec_swizzle(fp, src->swizzle, src->expand_mode, mode, src_mask); in print_vector_src()
658 fprintf(fp, "%s", argmod_names[arg_mod]); in print_vector_src()
660 print_srcmod(fp, is_int, INPUT_EXPANDS(src->expand_mode), src->mod, false); in print_vector_src()
674 print_immediate(FILE *fp, uint16_t imm, bool is_instruction_int) in print_immediate() argument
677 fprintf(fp, "#%u", imm); in print_immediate()
679 fprintf(fp, "#%g", _mesa_half_to_float(imm)); in print_immediate()
695 print_dest(disassemble_context *ctx, FILE *fp, unsigned reg) in print_dest() argument
698 print_alu_reg(ctx, fp, reg, true); in print_dest()
709 print_alu_mask(FILE *fp, uint8_t mask, unsigned bits, midgard_shrink_mode shrink_mode) in print_alu_mask() argument
716 fprintf(fp, "."); in print_alu_mask()
745 fprintf(fp, "%c", c); in print_alu_mask()
747 fprintf(fp, "%c", alphabet[comp_idx+1]); in print_alu_mask()
752 fprintf(fp, " /* %X */", mask); in print_alu_mask()
757 print_ldst_mask(FILE *fp, unsigned mask, unsigned swizzle) { in print_ldst_mask() argument
758 fprintf(fp, "."); in print_ldst_mask()
766 fprintf(fp, "%c", write ? components[c] : '~'); in print_ldst_mask()
771 print_tex_mask(FILE *fp, unsigned mask, bool upper) in print_tex_mask() argument
775 fprintf(fp, "'"); in print_tex_mask()
780 fprintf(fp, "."); in print_tex_mask()
785 fprintf(fp, "%c", components[i + (upper ? 4 : 0)]); in print_tex_mask()
790 print_vector_field(disassemble_context *ctx, FILE *fp, const char *name, in print_vector_field() argument
803 fprintf(fp, "%s.", name); in print_vector_field()
805 bool is_instruction_int = print_alu_opcode(fp, alu_field->op); in print_vector_field()
808 fprintf(fp, ".%c%d", is_int_out ? 'i' : 'f', bits_for_mode(mode)); in print_vector_field()
810 fprintf(fp, " "); in print_vector_field()
816 print_dest(ctx, fp, reg_info->out_reg); in print_vector_field()
823 fprintf(fp, "/* do%u */ ", shrink_mode); in print_vector_field()
835 fprintf(fp, "/* err too many components */"); in print_vector_field()
837 print_alu_mask(fp, mask, bits_for_mode(mode), shrink_mode); in print_vector_field()
841 … print_alu_outmod(fp, alu_field->outmod, is_int_out, shrink_mode != midgard_shrink_mode_none); in print_vector_field()
848 fprintf(fp, ", "); in print_vector_field()
851 print_vector_constants(fp, alu_field->src1, consts, alu_field); in print_vector_field()
854 print_vector_src(ctx, fp, alu_field->src1, mode, reg_info->src1_reg, in print_vector_field()
858 fprintf(fp, ", "); in print_vector_field()
862 print_immediate(fp, imm, is_instruction_int); in print_vector_field()
864 print_vector_constants(fp, alu_field->src2, consts, alu_field); in print_vector_field()
867 print_vector_src(ctx, fp, alu_field->src2, mode, reg_info->src2_reg, in print_vector_field()
872 fprintf(fp, "\n"); in print_vector_field()
876 print_scalar_src(disassemble_context *ctx, FILE *fp, bool is_int, unsigned src_binary, unsigned reg) in print_scalar_src() argument
880 print_alu_reg(ctx, fp, reg, false); in print_scalar_src()
889 fprintf(fp, ".%c", components[c]); in print_scalar_src()
891 print_srcmod(fp, is_int, !src->full, src->mod, true); in print_scalar_src()
907 print_scalar_field(disassemble_context *ctx, FILE *fp, const char *name, in print_scalar_field() argument
918 fprintf(fp, "scalar ALU reserved bit set\n"); in print_scalar_field()
921 fprintf(fp, "%s.", name); in print_scalar_field()
923 bool is_instruction_int = print_alu_opcode(fp, alu_field->op); in print_scalar_field()
927 fprintf(fp, ".%c32", is_int_out ? 'i' : 'f'); in print_scalar_field()
929 fprintf(fp, " "); in print_scalar_field()
931 print_dest(ctx, fp, reg_info->out_reg); in print_scalar_field()
939 fprintf(fp, ".%c", components[c]); in print_scalar_field()
941 print_alu_outmod(fp, alu_field->outmod, is_int_out, !full); in print_scalar_field()
943 fprintf(fp, ", "); in print_scalar_field()
946 print_scalar_constant(fp, alu_field->src1, consts, alu_field); in print_scalar_field()
948 print_scalar_src(ctx, fp, is_int, alu_field->src1, reg_info->src1_reg); in print_scalar_field()
950 fprintf(fp, ", "); in print_scalar_field()
955 print_immediate(fp, imm, is_instruction_int); in print_scalar_field()
957 print_scalar_constant(fp, alu_field->src2, consts, alu_field); in print_scalar_field()
959 print_scalar_src(ctx, fp, is_int, alu_field->src2, reg_info->src2_reg); in print_scalar_field()
962 fprintf(fp, "\n"); in print_scalar_field()
966 print_branch_op(FILE *fp, unsigned op) in print_branch_op() argument
970 fprintf(fp, "uncond."); in print_branch_op()
974 fprintf(fp, "cond."); in print_branch_op()
978 fprintf(fp, "write."); in print_branch_op()
982 fprintf(fp, "tilebuffer."); in print_branch_op()
986 fprintf(fp, "discard."); in print_branch_op()
990 fprintf(fp, "unk%u.", op); in print_branch_op()
996 print_branch_cond(FILE *fp, int cond) in print_branch_cond() argument
1000 fprintf(fp, "write0"); in print_branch_cond()
1004 fprintf(fp, "false"); in print_branch_cond()
1008 fprintf(fp, "true"); in print_branch_cond()
1012 fprintf(fp, "always"); in print_branch_cond()
1016 fprintf(fp, "unk%X", cond); in print_branch_cond()
1033 print_compact_branch_writeout_field(disassemble_context *ctx, FILE *fp, uint16_t word) in print_compact_branch_writeout_field() argument
1042 fprintf(fp, "br.uncond%s ", function_call_mode(br_uncond.call_mode)); in print_compact_branch_writeout_field()
1045 fprintf(fp, "+"); in print_compact_branch_writeout_field()
1047 fprintf(fp, "%d -> %s", br_uncond.offset, in print_compact_branch_writeout_field()
1049 fprintf(fp, "\n"); in print_compact_branch_writeout_field()
1061 fprintf(fp, "br."); in print_compact_branch_writeout_field()
1063 print_branch_op(fp, br_cond.op); in print_compact_branch_writeout_field()
1064 print_branch_cond(fp, br_cond.cond); in print_compact_branch_writeout_field()
1066 fprintf(fp, " "); in print_compact_branch_writeout_field()
1069 fprintf(fp, "+"); in print_compact_branch_writeout_field()
1071 fprintf(fp, "%d -> %s", br_cond.offset, in print_compact_branch_writeout_field()
1073 fprintf(fp, "\n"); in print_compact_branch_writeout_field()
1083 print_extended_branch_writeout_field(disassemble_context *ctx, FILE *fp, uint8_t *words, in print_extended_branch_writeout_field() argument
1089 fprintf(fp, "brx%s.", function_call_mode(br.call_mode)); in print_extended_branch_writeout_field()
1091 print_branch_op(fp, br.op); in print_extended_branch_writeout_field()
1102 print_branch_cond(fp, br.cond & 0x3); in print_extended_branch_writeout_field()
1104 fprintf(fp, "lut%X", br.cond); in print_extended_branch_writeout_field()
1106 fprintf(fp, " "); in print_extended_branch_writeout_field()
1109 fprintf(fp, "+"); in print_extended_branch_writeout_field()
1111 fprintf(fp, "%d -> %s\n", br.offset, in print_extended_branch_writeout_field()
1117 fprintf(fp, "\t/* XXX TAG ERROR: jumping to %s but tagged %s \n", in print_extended_branch_writeout_field()
1152 print_alu_word(disassemble_context *ctx, FILE *fp, uint32_t *words, in print_alu_word() argument
1192 fprintf(fp, "unknown bit 16 enabled\n"); in print_alu_word()
1195 … print_vector_field(ctx, fp, "vmul", word_ptr, *beginning_ptr, consts, tabs, verbose); in print_alu_word()
1201 fprintf(fp, "unknown bit 18 enabled\n"); in print_alu_word()
1204 … print_scalar_field(ctx, fp, "sadd", word_ptr, *beginning_ptr, consts, tabs, verbose); in print_alu_word()
1210 fprintf(fp, "unknown bit 20 enabled\n"); in print_alu_word()
1213 … print_vector_field(ctx, fp, "vadd", word_ptr, *beginning_ptr, consts, tabs, verbose); in print_alu_word()
1219 fprintf(fp, "unknown bit 22 enabled\n"); in print_alu_word()
1222 … print_scalar_field(ctx, fp, "smul", word_ptr, *beginning_ptr, consts, tabs, verbose); in print_alu_word()
1228 fprintf(fp, "unknown bit 24 enabled\n"); in print_alu_word()
1231 print_vector_field(ctx, fp, "lut", word_ptr, *beginning_ptr, consts, tabs, verbose); in print_alu_word()
1236 branch_forward |= print_compact_branch_writeout_field(ctx, fp, *word_ptr); in print_alu_word()
1241 … branch_forward |= print_extended_branch_writeout_field(ctx, fp, (uint8_t *) word_ptr, next); in print_alu_word()
1246 fprintf(fp, "uconstants 0x%X, 0x%X, 0x%X, 0x%X\n", in print_alu_word()
1256 print_varying_parameters(FILE *fp, midgard_load_store_word *word) in print_varying_parameters() argument
1262 fprintf(fp, ".flat"); in print_varying_parameters()
1265 fprintf(fp, ".correction"); in print_varying_parameters()
1268 fprintf(fp, ".centroid"); in print_varying_parameters()
1271 fprintf(fp, ".sample"); in print_varying_parameters()
1275 fprintf(fp, ".perspectivey"); in print_varying_parameters()
1278 fprintf(fp, ".perspectivez"); in print_varying_parameters()
1281 fprintf(fp, ".perspectivew"); in print_varying_parameters()
1323 midgard_print_sint(FILE *fp, int n) in midgard_print_sint() argument
1326 fprintf(fp, " + 0x%X", n); in midgard_print_sint()
1328 fprintf(fp, " - 0x%X", -n); in midgard_print_sint()
1339 print_load_store_instr(disassemble_context *ctx, FILE *fp, uint64_t data, bool verbose) in print_load_store_instr() argument
1343 print_ld_st_opcode(fp, word->op); in print_load_store_instr()
1346 fprintf(fp, " 0x%X\n", word->signed_offset); in print_load_store_instr()
1374 fprintf(fp, ".%s", is_secondary ? "secondary" : "primary"); in print_load_store_instr()
1376 fprintf(fp, ".%s", word->bitsize_toggle ? "f32" : "f16"); in print_load_store_instr()
1378 fprintf(fp, " "); in print_load_store_instr()
1383 print_ldst_write_reg(fp, word->reg); in print_load_store_instr()
1394 print_ldst_mask(fp, word->mask, swizzle); in print_load_store_instr()
1402 print_ldst_read_reg(fp, word->reg); in print_load_store_instr()
1403 print_vec_swizzle(fp, word->swizzle, midgard_src_passthrough, in print_load_store_instr()
1411 fprintf(fp, ", %u", imm); in print_load_store_instr()
1413 fprintf(fp, ", "); in print_load_store_instr()
1414 print_ldst_read_reg(fp, word->arg_reg); in print_load_store_instr()
1415 fprintf(fp, ".%c", components[word->arg_comp]); in print_load_store_instr()
1418 fprintf(fp, ", "); in print_load_store_instr()
1419 print_ldst_read_reg(fp, word->index_reg); in print_load_store_instr()
1420 fprintf(fp, ".%c", components[word->index_comp]); in print_load_store_instr()
1422 fprintf(fp, " << %u", word->index_shift); in print_load_store_instr()
1423 midgard_print_sint(fp, UNPACK_LDST_UBO_OFS(word->signed_offset)); in print_load_store_instr()
1428 fprintf(fp, ", "); in print_load_store_instr()
1433 print_ldst_read_reg(fp, word->arg_reg); in print_load_store_instr()
1434 fprintf(fp, ".u%d.%c", in print_load_store_instr()
1443 fprintf(fp, " + "); in print_load_store_instr()
1445 print_ldst_read_reg(fp, word->index_reg); in print_load_store_instr()
1446 fprintf(fp, "%s.%c", in print_load_store_instr()
1450 fprintf(fp, " << %u", word->index_shift); in print_load_store_instr()
1453 midgard_print_sint(fp, word->signed_offset); in print_load_store_instr()
1458 fprintf(fp, ", "); in print_load_store_instr()
1459 print_ldst_read_reg(fp, word->arg_reg); in print_load_store_instr()
1460 print_vec_swizzle(fp, word->swizzle, midgard_src_passthrough, in print_load_store_instr()
1468 fprintf(fp, ", "); in print_load_store_instr()
1469 print_ldst_read_reg(fp, src); in print_load_store_instr()
1470 fprintf(fp, ".%c", components[src_comp]); in print_load_store_instr()
1476 fprintf(fp, ", "); in print_load_store_instr()
1477 print_ldst_read_reg(fp, word->index_reg); in print_load_store_instr()
1478 fprintf(fp, ".%c", components[word->index_comp]); in print_load_store_instr()
1483 fprintf(fp, ", "); in print_load_store_instr()
1484 print_ldst_read_reg(fp, word->index_reg); in print_load_store_instr()
1485 fprintf(fp, ".%c", components[word->index_comp]); in print_load_store_instr()
1487 fprintf(fp, " << %u", word->index_shift); in print_load_store_instr()
1488 midgard_print_sint(fp, UNPACK_LDST_ATTRIB_OFS(word->signed_offset)); in print_load_store_instr()
1493 fprintf(fp, ", "); in print_load_store_instr()
1494 print_ldst_read_reg(fp, word->arg_reg); in print_load_store_instr()
1497 fprintf(fp, ".u%d", word->bitsize_toggle ? 64 : 32); in print_load_store_instr()
1499 fprintf(fp, ".%c", components[word->arg_comp]); in print_load_store_instr()
1502 midgard_print_sint(fp, UNPACK_LDST_VERTEX_OFS(word->signed_offset)); in print_load_store_instr()
1507 fprintf(fp, ", "); in print_load_store_instr()
1509 fprintf(fp, "0x%X", format_specifier); in print_load_store_instr()
1512 fprintf(fp, "\n"); in print_load_store_instr()
1543 print_load_store_word(disassemble_context *ctx, FILE *fp, uint32_t *word, bool verbose) in print_load_store_word() argument
1548 print_load_store_instr(ctx, fp, load_store->word1, verbose); in print_load_store_word()
1552 print_load_store_instr(ctx, fp, load_store->word2, verbose); in print_load_store_word()
1557 print_texture_reg_select(FILE *fp, uint8_t u, unsigned base) in print_texture_reg_select() argument
1562 print_tex_reg(fp, base + sel.select, false); in print_texture_reg_select()
1572 fprintf(fp, ".%c.%d", components[component], sel.full ? 32 : 16); in print_texture_reg_select()
1578 print_texture_format(FILE *fp, int format) in print_texture_format() argument
1581 fprintf(fp, "."); in print_texture_format()
1607 print_texture_op(FILE *fp, unsigned op) in print_texture_op() argument
1610 fprintf(fp, "%s", tex_opcode_props[op].name); in print_texture_op()
1612 fprintf(fp, "tex_op_%02X", op); in print_texture_op()
1638 print_texture_barrier(FILE *fp, uint32_t *word) in print_texture_barrier() argument
1643 fprintf(fp, "/* barrier tag %X != tex/bar */ ", barrier->type); in print_texture_barrier()
1646 fprintf(fp, "/* cont missing? */"); in print_texture_barrier()
1649 fprintf(fp, "/* last missing? */"); in print_texture_barrier()
1652 fprintf(fp, "/* zero1 = 0x%X */ ", barrier->zero1); in print_texture_barrier()
1655 fprintf(fp, "/* zero2 = 0x%X */ ", barrier->zero2); in print_texture_barrier()
1658 fprintf(fp, "/* zero3 = 0x%X */ ", barrier->zero3); in print_texture_barrier()
1661 fprintf(fp, "/* zero4 = 0x%X */ ", barrier->zero4); in print_texture_barrier()
1664 fprintf(fp, "/* zero4 = 0x%" PRIx64 " */ ", barrier->zero5); in print_texture_barrier()
1667 fprintf(fp, ".ooo%u", barrier->out_of_order); in print_texture_barrier()
1669 fprintf(fp, "\n"); in print_texture_barrier()
1711 print_texture_word(disassemble_context *ctx, FILE *fp, uint32_t *word, in print_texture_word() argument
1719 print_texture_op(fp, texture->op); in print_texture_word()
1723 print_texture_barrier(fp, word); in print_texture_word()
1726 fprintf (fp, "/* nonbarrier had tex/bar tag */ "); in print_texture_word()
1728 fprintf (fp, ".vtx"); in print_texture_word()
1731 fprintf(fp, "%s", derivative_mode(texture->mode)); in print_texture_word()
1733 fprintf(fp, "%s", texture_mode(texture->mode)); in print_texture_word()
1736 print_texture_format(fp, texture->format); in print_texture_word()
1739 fputs(partial_exection_mode(texture->exec), fp); in print_texture_word()
1742 fprintf(fp, ".ooo%u", texture->out_of_order); in print_texture_word()
1744 fprintf(fp, " "); in print_texture_word()
1745 print_tex_reg(fp, out_reg_base + texture->out_reg_select, true); in print_texture_word()
1746 print_tex_mask(fp, texture->mask, texture->out_upper); in print_texture_word()
1747 fprintf(fp, ".%c%d", texture->sampler_type == MALI_SAMPLER_FLOAT ? 'f' : 'i', in print_texture_word()
1753 mir_print_outmod(fp, texture->outmod, false); in print_texture_word()
1755 fprintf(fp, ", "); in print_texture_word()
1761 fprintf(fp, "texture["); in print_texture_word()
1762 print_texture_reg_select(fp, texture->texture_handle, in_reg_base); in print_texture_word()
1763 fprintf(fp, "], "); in print_texture_word()
1768 fprintf(fp, "texture%u, ", texture->texture_handle); in print_texture_word()
1773 fprintf(fp, "%csampler", sampler_type_name(texture->sampler_type)); in print_texture_word()
1776 fprintf(fp, "["); in print_texture_word()
1777 print_texture_reg_select(fp, texture->sampler_handle, in_reg_base); in print_texture_word()
1778 fprintf(fp, "]"); in print_texture_word()
1782 fprintf(fp, "%u", texture->sampler_handle); in print_texture_word()
1786 print_vec_swizzle(fp, texture->swizzle, midgard_src_passthrough, midgard_reg_mode_32, 0xFF); in print_texture_word()
1788 fprintf(fp, ", "); in print_texture_word()
1792 print_tex_reg(fp, in_reg_base + texture->in_reg_select, false); in print_texture_word()
1793 print_vec_swizzle(fp, texture->in_reg_swizzle, exp, midgard_reg_mode_32, 0xFF); in print_texture_word()
1794 fprintf(fp, ".%d", texture->in_reg_full ? 32 : 16); in print_texture_word()
1808 fprintf(fp, " + "); in print_texture_word()
1817 print_tex_reg(fp, in_reg_base + select, false); in print_texture_word()
1818 print_vec_swizzle(fp, swizzle, exp, midgard_reg_mode_32, 0xFF); in print_texture_word()
1819 fprintf(fp, ".%d", full ? 32 : 16); in print_texture_word()
1822 fprintf(fp, ", "); in print_texture_word()
1836 fprintf(fp, "/* invalid negative */ "); in print_texture_word()
1840 fprintf(fp, " + <%d, %d, %d>, ", offset_x, offset_y, offset_z); in print_texture_word()
1842 fprintf(fp, ", "); in print_texture_word()
1848 fprintf(fp, "lod %c ", lod_operand); in print_texture_word()
1849 print_texture_reg_select(fp, texture->bias, in_reg_base); in print_texture_word()
1850 fprintf(fp, ", "); in print_texture_word()
1853 fprintf(fp, " /* bias_int = 0x%X */", texture->bias_int); in print_texture_word()
1860 fprintf(fp, " /* bias_int = 0x%X */ ", texture->bias_int); in print_texture_word()
1862 fprintf(fp, "lod = %u, ", texture->bias); in print_texture_word()
1872 fprintf(fp, "lod %c %f, ", operand, fabsf(bias)); in print_texture_word()
1875 fprintf(fp, "\n"); in print_texture_word()
1882 fprintf(fp, "// unknown4 = 0x%x\n", texture->unknown4); in print_texture_word()
1883 fprintf(fp, "// unknown8 = 0x%x\n", texture->unknown8); in print_texture_word()
1890 disassemble_midgard(FILE *fp, uint8_t *code, size_t size, unsigned gpu_id, bool verbose) in disassemble_midgard() argument
1914 fprintf(fp, "\t/* XXX: TAG ERROR branch, got %s expected %s */\n", in disassemble_midgard()
1940 fprintf(fp, "\t/* XXX: invalid next tag */\n"); in disassemble_midgard()
1943 fprintf(fp, "\t/* XXX: TAG ERROR sequence, got %s expexted %s */\n", in disassemble_midgard()
1966 print_texture_word(&ctx, fp, &words[i], tabs, in disassemble_midgard()
1973 print_load_store_word(&ctx, fp, &words[i], verbose); in disassemble_midgard()
1977 …branch_forward = print_alu_word(&ctx, fp, &words[i], num_quad_words, tabs, i + 4*num_quad_words, v… in disassemble_midgard()
1981 fprintf(fp, "writeout\n"); in disassemble_midgard()
1986 fprintf(fp, "Unknown word type %u:\n", words[i] & 0xF); in disassemble_midgard()
1988 print_quad_word(fp, &words[i], tabs); in disassemble_midgard()
1989 fprintf(fp, "\n"); in disassemble_midgard()
2006 fprintf(fp, "break\n"); in disassemble_midgard()
2008 fprintf(fp, "\n"); in disassemble_midgard()
2013 fprintf(fp, "\n"); in disassemble_midgard()
2019 fprintf(fp, "/* XXX: shader ended with tag %s */\n", in disassemble_midgard()