Lines Matching defs:input
457 unsigned tess_input_info; /* temp with tess input offsets */
458 unsigned tess_output_info; /* temp with tess input offsets */
585 int input)
588 ctx->shader->input[input].interpolate,
589 ctx->shader->input[input].interpolate_location);
591 ctx->shader->input[input].ij_index = ctx->eg_interpolators[i].ij_index;
594 static int evergreen_interp_alu(struct r600_shader_ctx *ctx, int input)
599 int ij_index = ctx->shader->input[input].ij_index;
614 alu.dst.sel = ctx->shader->input[input].gpr;
623 alu.src[1].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos;
635 static int evergreen_interp_flat(struct r600_shader_ctx *ctx, int input)
645 alu.dst.sel = ctx->shader->input[input].gpr;
650 alu.src[0].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos;
730 /* we need this to get a common lds index for vs/tcs/tes input/outputs */
776 /* turn input into interpolate on EG */
781 if (ctx->shader->input[index].spi_sid) {
782 ctx->shader->input[index].lds_pos = ctx->shader->nlds++;
783 if (ctx->shader->input[index].interpolate > 0) {
797 int gpr_front = ctx->shader->input[front].gpr;
798 int gpr_back = ctx->shader->input[back].gpr;
1087 assert(i < ARRAY_SIZE(ctx->shader->input));
1088 ctx->shader->input[i].name = d->Semantic.Name;
1089 ctx->shader->input[i].sid = d->Semantic.Index + j;
1090 ctx->shader->input[i].interpolate = d->Interp.Interpolate;
1091 ctx->shader->input[i].interpolate_location = d->Interp.Location;
1092 ctx->shader->input[i].gpr = ctx->file_offset[TGSI_FILE_INPUT] + d->Range.First + j;
1094 ctx->shader->input[i].spi_sid = r600_spi_sid(&ctx->shader->input[i]);
1095 switch (ctx->shader->input[i].name) {
1098 ctx->shader->input[i].gpr = ctx->face_gpr; /* already allocated by allocate_system_value_inputs */
1100 ctx->face_gpr = ctx->shader->input[i].gpr;
1120 ctx->shader->input[i].ring_offset = ctx->next_ring_offset;
1122 if (ctx->shader->input[i].name == TGSI_SEMANTIC_PRIMID)
1382 ctx->shader->input[k].name = name;
1383 ctx->shader->input[k].sid = 0;
1384 ctx->shader->input[k].interpolate = TGSI_INTERPOLATE_CONSTANT;
1385 ctx->shader->input[k].interpolate_location = TGSI_INTERPOLATE_LOC_CENTER;
1386 *reg = ctx->shader->input[k].gpr = gpr;
2003 if (ctx->shader->input[src->Register.Index].name == TGSI_SEMANTIC_PRIMID) {
2411 if (ctx->shader->input[i].name == TGSI_SEMANTIC_COLOR) {
2412 r = select_twoside_color(ctx, i, ctx->shader->input[i].back_color_input);
2914 * (map this output to GS input by name and sid) */
2918 struct r600_shader_io *in = &ctx->gs_for_vs->input[k];
2933 /* next_ring_offset after parsing input decls contains total size of
2990 /* fetch tcs input values into resv space */
3052 /* fetch tcs input values into input_vals */
3599 /* FIXME 1 would be enough in some cases (3 or less input vertices) */
3778 ctx.shader->input[i].name = TGSI_SEMANTIC_FACE;
3779 ctx.shader->input[i].spi_sid = 0;
3780 ctx.shader->input[i].gpr = gpr++;
3781 ctx.face_gpr = ctx.shader->input[i].gpr;
3785 if (ctx.shader->input[i].name == TGSI_SEMANTIC_COLOR) {
3787 memcpy(&ctx.shader->input[ni],&ctx.shader->input[i], sizeof(struct r600_shader_io));
3788 ctx.shader->input[ni].name = TGSI_SEMANTIC_BCOLOR;
3789 ctx.shader->input[ni].spi_sid = r600_spi_sid(&ctx.shader->input[ni]);
3790 ctx.shader->input[ni].gpr = gpr++;
3793 ctx.shader->input[ni].lds_pos = next_lds_loc++;
3794 ctx.shader->input[i].back_color_input = ni;
3867 alu.src[0].sel = shader->input[ctx.fragcoord_input].gpr;
3870 alu.dst.sel = shader->input[ctx.fragcoord_input].gpr;
3881 alu.src[0].sel = shader->input[ctx.fragcoord_input].gpr;
3884 alu.dst.sel = shader->input[ctx.fragcoord_input].gpr;
7067 const int input = inst->Src[0].Register.Index + ctx->shader->nsys_inputs;
7078 ctx->shader->input[input].uses_interpolate_at_centroid = 1;
7081 k = eg_get_interpolator_index(ctx->shader->input[input].interpolate, location);
7192 alu.src[1].sel = V_SQ_ALU_SRC_PARAM_BASE + ctx->shader->input[input].lds_pos;