Lines Matching defs:out
147 /* Pad out the size so that when turnip uploads the shaders in
609 /* Figures out which stages in the pipeline to use the "safe" constlen for, in
688 dump_reg(FILE *out, const char *name, uint32_t r)
692 fprintf(out, "; %s: %s%d.%c\n", name, reg_type, (r & ~HALF_REG_ID) >> 2,
698 dump_output(FILE *out, struct ir3_shader_variant *so, unsigned slot,
703 dump_reg(out, name, regid);
738 dump_const_state(struct ir3_shader_variant *so, FILE *out)
743 fprintf(out, "; num_ubos: %u\n", cs->num_ubos);
744 fprintf(out, "; num_driver_params: %u\n", cs->num_driver_params);
745 fprintf(out, "; offsets:\n");
747 fprintf(out, "; ubo: c%u.x\n", cs->offsets.ubo);
749 fprintf(out, "; image_dims: c%u.x\n", cs->offsets.image_dims);
751 fprintf(out, "; kernel_params: c%u.x\n", cs->offsets.kernel_params);
753 fprintf(out, "; driver_param: c%u.x\n", cs->offsets.driver_param);
755 fprintf(out, "; tfbo: c%u.x\n", cs->offsets.tfbo);
757 fprintf(out, "; primitive_params: c%u.x\n", cs->offsets.primitive_param);
759 fprintf(out, "; primitive_map: c%u.x\n", cs->offsets.primitive_map);
760 fprintf(out, "; ubo_state:\n");
761 fprintf(out, "; num_enabled: %u\n", us->num_enabled);
767 fprintf(out, "; range[%u]:\n", i);
768 fprintf(out, "; block: %u\n", r->ubo.block);
770 fprintf(out, "; bindless_base: %u\n", r->ubo.bindless_base);
771 fprintf(out, "; offset: c%u.x\n", r->offset/16);
776 fprintf(out, "; size: %u vec4 (%ub -> %ub)\n", (size/16), r->start, r->end);
781 ir3_shader_disasm(struct ir3_shader_variant *so, uint32_t *bin, FILE *out)
789 dump_const_state(so, out);
794 fprintf(out, "@in(%sr%d.%c)\tin%d",
799 fprintf(out, " (wrmask=0x%x)", reg->wrmask);
800 fprintf(out, "\n");
806 fprintf(out,
815 fprintf(out, "@const(c%d.x)\t", const_state->offsets.immediate + i);
816 fprintf(out, "0x%08x, 0x%08x, 0x%08x, 0x%08x\n",
823 isa_decode(bin, so->info.sizedwords * 4, out,
830 fprintf(out, "; %s: outputs:", type);
834 fprintf(out, " %s%d.%c (%s)", reg_type, (regid >> 2), "xyzw"[regid & 0x3],
837 fprintf(out, "\n");
839 fprintf(out, "; %s: inputs:", type);
842 fprintf(out, " r%d.%c (%s slot=%d cm=%x,il=%u,b=%u)", (regid >> 2),
846 fprintf(out, "\n");
850 out,
856 fprintf(out,
862 out,
871 out,
879 dump_output(out, so, VARYING_SLOT_POS, "pos");
880 dump_output(out, so, VARYING_SLOT_PSIZ, "psize");
883 dump_reg(out, "pos (ij_pixel)",
886 out, "pos (ij_centroid)",
888 dump_reg(out, "pos (center_rhw)",
890 dump_output(out, so, FRAG_RESULT_DEPTH, "posz");
892 dump_output(out, so, FRAG_RESULT_COLOR, "color");
894 dump_output(out, so, FRAG_RESULT_DATA0, "data0");
895 dump_output(out, so, FRAG_RESULT_DATA1, "data1");
896 dump_output(out, so, FRAG_RESULT_DATA2, "data2");
897 dump_output(out, so, FRAG_RESULT_DATA3, "data3");
898 dump_output(out, so, FRAG_RESULT_DATA4, "data4");
899 dump_output(out, so, FRAG_RESULT_DATA5, "data5");
900 dump_output(out, so, FRAG_RESULT_DATA6, "data6");
901 dump_output(out, so, FRAG_RESULT_DATA7, "data7");
903 dump_reg(out, "fragcoord",
905 dump_reg(out, "fragface",
913 fprintf(out, "\n");
922 /* Add any missing varyings needed for stream-out. Otherwise varyings not
923 * used by fragment shader will be stripped out.
932 * First, any stream-out varyings not already in linkage map (ie. also
936 const struct ir3_stream_output *out = &strmout->output[i];
937 unsigned k = out->register_index;
939 (1 << (out->num_components + out->start_component)) - 1;
961 /* expand component-mask if needed, ie streaming out all components