• Home
  • Raw
  • Download

Lines Matching refs:fprintf

38       fprintf(fp, "\t");  in print_tabs()
73 fprintf(stderr, "%s\n\n", note); in print_annotation()
81 fprintf(fp, "/* %s */ ", reg->name); in print_register()
83 fprintf(fp, "gr%u", reg->index); in print_register()
85 fprintf(fp, "r%u", reg->index); in print_register()
94 fprintf(fp, "decl_reg %s %u ", sizes[reg->num_components], reg->bit_size); in print_register_decl()
96 fprintf(fp, "(packed) "); in print_register_decl()
99 fprintf(fp, "[%u]", reg->num_array_elems); in print_register_decl()
100 fprintf(fp, "\n"); in print_register_decl()
108 fprintf(fp, "/* %s */ ", def->name); in print_ssa_def()
109 fprintf(fp, "%s %u ssa_%u", sizes[def->num_components], def->bit_size, in print_ssa_def()
118 fprintf(fp, "/* %s */ ", def->name); in print_ssa_use()
119 fprintf(fp, "ssa_%u", def->index); in print_ssa_use()
130 fprintf(fp, "[%u", src->base_offset); in print_reg_src()
132 fprintf(fp, " + "); in print_reg_src()
135 fprintf(fp, "]"); in print_reg_src()
145 fprintf(fp, "[%u", dest->base_offset); in print_reg_dest()
147 fprintf(fp, " + "); in print_reg_dest()
150 fprintf(fp, "]"); in print_reg_dest()
178 fprintf(fp, "-"); in print_alu_src()
180 fprintf(fp, "abs("); in print_alu_src()
204 fprintf(fp, "."); in print_alu_src()
209 fprintf(fp, "%c", "xyzw"[instr->src[src].swizzle[i]]); in print_alu_src()
214 fprintf(fp, ")"); in print_alu_src()
227 fprintf(fp, "."); in print_alu_dest()
230 fprintf(fp, "%c", "xyzw"[i]); in print_alu_dest()
241 fprintf(fp, " = %s", nir_op_infos[instr->op].name); in print_alu_instr()
243 fprintf(fp, "!"); in print_alu_instr()
245 fprintf(fp, ".sat"); in print_alu_instr()
246 fprintf(fp, " "); in print_alu_instr()
250 fprintf(fp, ", "); in print_alu_instr()
306 if (i > 0) fprintf(fp, ", "); in print_constant()
307 fprintf(fp, "0x%08x", c->values[0].u32[i]); in print_constant()
314 if (i + j > 0) fprintf(fp, ", "); in print_constant()
315 fprintf(fp, "%f", c->values[i].f32[j]); in print_constant()
323 if (i + j > 0) fprintf(fp, ", "); in print_constant()
324 fprintf(fp, "%f", c->values[i].f64[j]); in print_constant()
335 if (i > 0) fprintf(fp, ", "); in print_constant()
336 fprintf(fp, "0x%08" PRIx64, c->values[0].u64[i]); in print_constant()
342 if (i > 0) fprintf(fp, ", "); in print_constant()
343 fprintf(fp, "{ "); in print_constant()
345 fprintf(fp, " }"); in print_constant()
351 if (i > 0) fprintf(fp, ", "); in print_constant()
352 fprintf(fp, "{ "); in print_constant()
354 fprintf(fp, " }"); in print_constant()
392 fprintf(fp, "decl_var "); in print_var_decl()
398 fprintf(fp, "%s%s%s%s%s %s ", in print_var_decl()
407 fprintf(fp, "%s%s%s%s%s", coher, volat, restr, ronly, wonly); in print_var_decl()
409 fprintf(fp, "%s %s", glsl_get_type_name(var->type), in print_var_decl()
472 fprintf(fp, " (%s%s, %u, %u)%s", loc, in print_var_decl()
479 fprintf(fp, " = { "); in print_var_decl()
481 fprintf(fp, " }"); in print_var_decl()
484 fprintf(fp, "\n"); in print_var_decl()
492 fprintf(fp, "%s", get_var_name(var, state)); in print_var()
499 fprintf(fp, "%s %s", glsl_get_type_name(var->type), in print_arg()
513 fprintf(fp, "["); in print_deref_array()
516 fprintf(fp, "%u", deref->base_offset); in print_deref_array()
520 fprintf(fp, "%u + ", deref->base_offset); in print_deref_array()
524 fprintf(fp, "*"); in print_deref_array()
527 fprintf(fp, "]"); in print_deref_array()
535 fprintf(fp, ".%s", glsl_get_struct_elem_name(parent_type, deref->index)); in print_deref_struct()
580 fprintf(fp, " = "); in print_intrinsic_instr()
583 fprintf(fp, "intrinsic %s (", info->name); in print_intrinsic_instr()
587 fprintf(fp, ", "); in print_intrinsic_instr()
592 fprintf(fp, ") ("); in print_intrinsic_instr()
596 fprintf(fp, ", "); in print_intrinsic_instr()
601 fprintf(fp, ") ("); in print_intrinsic_instr()
605 fprintf(fp, ", "); in print_intrinsic_instr()
607 fprintf(fp, "%d", instr->const_index[i]); in print_intrinsic_instr()
610 fprintf(fp, ")"); in print_intrinsic_instr()
626 fprintf(fp, " /*"); in print_intrinsic_instr()
630 fprintf(fp, " wrmask="); in print_intrinsic_instr()
633 fprintf(fp, "%c", "xyzw"[i]); in print_intrinsic_instr()
637 fprintf(fp, " %s=%d", index_name[idx], instr->const_index[off]); in print_intrinsic_instr()
639 fprintf(fp, " */"); in print_intrinsic_instr()
669 fprintf(fp, "\t/* %s */", var->name); in print_intrinsic_instr()
682 fprintf(fp, " = "); in print_tex_instr()
686 fprintf(fp, "tex "); in print_tex_instr()
689 fprintf(fp, "txb "); in print_tex_instr()
692 fprintf(fp, "txl "); in print_tex_instr()
695 fprintf(fp, "txd "); in print_tex_instr()
698 fprintf(fp, "txf "); in print_tex_instr()
701 fprintf(fp, "txf_ms "); in print_tex_instr()
704 fprintf(fp, "txf_ms_mcs "); in print_tex_instr()
707 fprintf(fp, "txs "); in print_tex_instr()
710 fprintf(fp, "lod "); in print_tex_instr()
713 fprintf(fp, "tg4 "); in print_tex_instr()
716 fprintf(fp, "query_levels "); in print_tex_instr()
719 fprintf(fp, "texture_samples "); in print_tex_instr()
722 fprintf(fp, "samples_identical "); in print_tex_instr()
732 fprintf(fp, " "); in print_tex_instr()
736 fprintf(fp, "(coord)"); in print_tex_instr()
739 fprintf(fp, "(projector)"); in print_tex_instr()
742 fprintf(fp, "(comparator)"); in print_tex_instr()
745 fprintf(fp, "(offset)"); in print_tex_instr()
748 fprintf(fp, "(bias)"); in print_tex_instr()
751 fprintf(fp, "(lod)"); in print_tex_instr()
754 fprintf(fp, "(ms_index)"); in print_tex_instr()
757 fprintf(fp, "(ms_mcs)"); in print_tex_instr()
760 fprintf(fp, "(ddx)"); in print_tex_instr()
763 fprintf(fp, "(ddy)"); in print_tex_instr()
766 fprintf(fp, "(texture_offset)"); in print_tex_instr()
769 fprintf(fp, "(sampler_offset)"); in print_tex_instr()
772 fprintf(fp, "(plane)"); in print_tex_instr()
780 fprintf(fp, ", "); in print_tex_instr()
784 fprintf(fp, "%u (gather_component), ", instr->component); in print_tex_instr()
789 fprintf(fp, " (texture)"); in print_tex_instr()
792 fprintf(fp, " (sampler)"); in print_tex_instr()
796 fprintf(fp, "%u (texture) %u (sampler)", in print_tex_instr()
806 fprintf(fp, "call %s ", instr->callee->name); in print_call_instr()
810 fprintf(fp, ", "); in print_call_instr()
817 fprintf(fp, ", "); in print_call_instr()
818 fprintf(fp, "returning "); in print_call_instr()
830 fprintf(fp, " = load_const ("); in print_load_const_instr()
834 fprintf(fp, ", "); in print_load_const_instr()
843 fprintf(fp, "0x%16" PRIx64 " /* %f */", instr->value.u64[i], in print_load_const_instr()
846 fprintf(fp, "0x%08x /* %f */", instr->value.u32[i], instr->value.f32[i]); in print_load_const_instr()
849 fprintf(fp, ")"); in print_load_const_instr()
859 fprintf(fp, "break"); in print_jump_instr()
863 fprintf(fp, "continue"); in print_jump_instr()
867 fprintf(fp, "return"); in print_jump_instr()
877 fprintf(fp, " = undefined"); in print_ssa_undef_instr()
885 fprintf(fp, " = phi "); in print_phi_instr()
888 fprintf(fp, ", "); in print_phi_instr()
890 fprintf(fp, "block_%u: ", src->pred->index); in print_phi_instr()
901 fprintf(fp, "; "); in print_parallel_copy_instr()
904 fprintf(fp, " = "); in print_parallel_copy_instr()
976 fprintf(fp, "block block_%u:\n", block->index); in print_block()
993 fprintf(fp, "/* preds: "); in print_block()
995 fprintf(fp, "block_%u ", preds[i]->index); in print_block()
997 fprintf(fp, "*/\n"); in print_block()
1003 fprintf(fp, "\n"); in print_block()
1008 fprintf(fp, "/* succs: "); in print_block()
1011 fprintf(fp, "block_%u ", block->successors[i]->index); in print_block()
1013 fprintf(fp, "*/\n"); in print_block()
1022 fprintf(fp, "if "); in print_if()
1024 fprintf(fp, " {\n"); in print_if()
1029 fprintf(fp, "} else {\n"); in print_if()
1034 fprintf(fp, "}\n"); in print_if()
1043 fprintf(fp, "loop {\n"); in print_loop()
1048 fprintf(fp, "}\n"); in print_loop()
1077 fprintf(fp, "\nimpl %s ", impl->function->name); in print_function_impl()
1081 fprintf(fp, ", "); in print_function_impl()
1088 fprintf(fp, ", "); in print_function_impl()
1089 fprintf(fp, "returning "); in print_function_impl()
1093 fprintf(fp, "{\n"); in print_function_impl()
1096 fprintf(fp, "\t"); in print_function_impl()
1101 fprintf(fp, "\t"); in print_function_impl()
1111 fprintf(fp, "\tblock block_%u:\n}\n\n", impl->end_block->index); in print_function_impl()
1119 fprintf(fp, "decl_function %s ", function->name); in print_function()
1123 fprintf(fp, ", "); in print_function()
1127 fprintf(fp, "in "); in print_function()
1130 fprintf(fp, "out "); in print_function()
1133 fprintf(fp, "inout "); in print_function()
1139 fprintf(fp, "%s", glsl_get_type_name(function->params[i].type)); in print_function()
1144 fprintf(fp, ", "); in print_function()
1145 fprintf(fp, "returning %s", glsl_get_type_name(function->return_type)); in print_function()
1148 fprintf(fp, "\n"); in print_function()
1184 fprintf(fp, "shader: %s\n", gl_shader_stage_name(shader->info.stage)); in nir_print_shader_annotated()
1187 fprintf(fp, "name: %s\n", shader->info.name); in nir_print_shader_annotated()
1190 fprintf(fp, "label: %s\n", shader->info.label); in nir_print_shader_annotated()
1194 fprintf(fp, "local-size: %u, %u, %u%s\n", in nir_print_shader_annotated()
1199 fprintf(fp, "shared-size: %u\n", shader->info.cs.shared_size); in nir_print_shader_annotated()
1205 fprintf(fp, "inputs: %u\n", shader->num_inputs); in nir_print_shader_annotated()
1206 fprintf(fp, "outputs: %u\n", shader->num_outputs); in nir_print_shader_annotated()
1207 fprintf(fp, "uniforms: %u\n", shader->num_uniforms); in nir_print_shader_annotated()
1208 fprintf(fp, "shared: %u\n", shader->num_shared); in nir_print_shader_annotated()