Lines Matching refs:fp
28 agx_print_sized(char prefix, unsigned value, enum agx_size size, FILE *fp) in agx_print_sized() argument
32 fprintf(fp, "%c%u%c", prefix, value >> 1, (value & 1) ? 'h' : 'l'); in agx_print_sized()
36 fprintf(fp, "%c%u", prefix, value >> 1); in agx_print_sized()
40 fprintf(fp, "%c%u:%c%u", prefix, value >> 1, in agx_print_sized()
49 agx_print_index(agx_index index, FILE *fp) in agx_print_index() argument
53 fprintf(fp, "_"); in agx_print_index()
58 fprintf(fp, "$"); in agx_print_index()
61 fprintf(fp, "`"); in agx_print_index()
64 fprintf(fp, "*"); in agx_print_index()
66 fprintf(fp, "%u", index.value); in agx_print_index()
70 fprintf(fp, "#%u", index.value); in agx_print_index()
74 agx_print_sized('u', index.value, index.size, fp); in agx_print_index()
78 agx_print_sized('r', index.value, index.size, fp); in agx_print_index()
88 fprintf(fp, "h"); in agx_print_index()
90 fprintf(fp, "d"); in agx_print_index()
94 fprintf(fp, ".abs"); in agx_print_index()
97 fprintf(fp, ".neg"); in agx_print_index()
101 agx_print_instr(agx_instr *I, FILE *fp) in agx_print_instr() argument
106 fprintf(fp, " %s", info.name); in agx_print_instr()
109 fprintf(fp, ".sat"); in agx_print_instr()
112 fprintf(fp, ".last"); in agx_print_instr()
114 fprintf(fp, " "); in agx_print_instr()
120 fprintf(fp, ", "); in agx_print_instr()
124 agx_print_index(I->dest[d], fp); in agx_print_instr()
129 fprintf(fp, ", "); in agx_print_instr()
133 agx_print_index(I->src[s], fp); in agx_print_instr()
137 fprintf(fp, ", "); in agx_print_instr()
141 fprintf(fp, "%c", "xyzw"[i]); in agx_print_instr()
148 fprintf(fp, ", "); in agx_print_instr()
152 fprintf(fp, "#%X", I->imm); in agx_print_instr()
157 fprintf(fp, ", "); in agx_print_instr()
161 fprintf(fp, "dim %u", I->dim); // TODO enumify in agx_print_instr()
166 fprintf(fp, ", "); in agx_print_instr()
170 fprintf(fp, "slot %u", I->scoreboard); in agx_print_instr()
175 fprintf(fp, ", "); in agx_print_instr()
179 fprintf(fp, "n=%u", I->nest); in agx_print_instr()
184 fprintf(fp, ", "); in agx_print_instr()
188 fprintf(fp, "inv"); in agx_print_instr()
191 fprintf(fp, "\n"); in agx_print_instr()
195 agx_print_block(agx_block *block, FILE *fp) in agx_print_block() argument
197 fprintf(fp, "block%u {\n", block->index); in agx_print_block()
200 agx_print_instr(ins, fp); in agx_print_block()
202 fprintf(fp, "}"); in agx_print_block()
205 fprintf(fp, " -> "); in agx_print_block()
208 fprintf(fp, "block%u ", succ->index); in agx_print_block()
212 fprintf(fp, " from"); in agx_print_block()
215 fprintf(fp, " block%u", (*pred)->index); in agx_print_block()
218 fprintf(fp, "\n\n"); in agx_print_block()
222 agx_print_shader(agx_context *ctx, FILE *fp) in agx_print_shader() argument
225 agx_print_block(block, fp); in agx_print_shader()