Lines Matching defs:stvp

87                         struct st_vertex_program *stvp )
91 for (vpv = stvp->variants; vpv; ) {
97 stvp->variants = NULL;
180 struct st_vertex_program *stvp)
184 stvp->num_inputs = 0;
185 stvp->num_outputs = 0;
187 if (stvp->Base.IsPositionInvariant)
188 _mesa_insert_mvp_code(ctx, &stvp->Base);
190 if (!stvp->glsl_to_tgsi)
191 assert(stvp->Base.Base.NumInstructions > 1);
198 if ((stvp->Base.Base.InputsRead & BITFIELD64_BIT(attr)) != 0) {
199 stvp->input_to_index[attr] = stvp->num_inputs;
200 stvp->index_to_input[stvp->num_inputs] = attr;
201 stvp->num_inputs++;
205 stvp->input_to_index[VERT_ATTRIB_EDGEFLAG] = stvp->num_inputs;
206 stvp->index_to_input[stvp->num_inputs] = VERT_ATTRIB_EDGEFLAG;
211 if ((stvp->Base.Base.OutputsWritten & BITFIELD64_BIT(attr)) == 0) {
212 stvp->result_to_output[attr] = ~0;
215 unsigned slot = stvp->num_outputs++;
217 stvp->result_to_output[attr] = slot;
221 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_POSITION;
222 stvp->output_semantic_index[slot] = 0;
225 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
226 stvp->output_semantic_index[slot] = 0;
229 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_COLOR;
230 stvp->output_semantic_index[slot] = 1;
233 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
234 stvp->output_semantic_index[slot] = 0;
237 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_BCOLOR;
238 stvp->output_semantic_index[slot] = 1;
241 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_FOG;
242 stvp->output_semantic_index[slot] = 0;
245 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_PSIZE;
246 stvp->output_semantic_index[slot] = 0;
249 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
250 stvp->output_semantic_index[slot] = 0;
253 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPDIST;
254 stvp->output_semantic_index[slot] = 1;
260 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_CLIPVERTEX;
261 stvp->output_semantic_index[slot] = 0;
272 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
273 stvp->output_semantic_index[slot] = attr - VERT_RESULT_TEX0;
279 stvp->output_semantic_name[slot] = TGSI_SEMANTIC_GENERIC;
280 stvp->output_semantic_index[slot] = (FRAG_ATTRIB_VAR0 -
289 stvp->result_to_output[VERT_RESULT_EDGE] = stvp->num_outputs;
290 stvp->output_semantic_name[stvp->num_outputs] = TGSI_SEMANTIC_EDGEFLAG;
291 stvp->output_semantic_index[stvp->num_outputs] = 0;
300 struct st_vertex_program *stvp,
309 st_prepare_vertex_program(st->ctx, stvp);
311 if (!stvp->glsl_to_tgsi)
313 _mesa_remove_output_reads(&stvp->Base.Base, PROGRAM_OUTPUT);
314 _mesa_remove_output_reads(&stvp->Base.Base, PROGRAM_VARYING);
325 vpv->num_inputs = stvp->num_inputs;
326 num_outputs = stvp->num_outputs;
333 _mesa_print_program(&stvp->Base.Base);
334 _mesa_print_program_parameters(st->ctx, &stvp->Base.Base);
338 if (stvp->glsl_to_tgsi)
342 stvp->glsl_to_tgsi,
343 &stvp->Base.Base,
345 stvp->num_inputs,
346 stvp->input_to_index,
352 stvp->num_outputs,
353 stvp->result_to_output,
354 stvp->output_semantic_name,
355 stvp->output_semantic_index,
362 &stvp->Base.Base,
365 stvp->input_to_index,
371 stvp->result_to_output,
372 stvp->output_semantic_name,
373 stvp->output_semantic_index,
386 if (stvp->glsl_to_tgsi) {
387 st_translate_stream_output_info(stvp->glsl_to_tgsi,
388 stvp->result_to_output,
403 _mesa_print_program(&stvp->Base.Base);
416 struct st_vertex_program *stvp,
422 for (vpv = stvp->variants; vpv; vpv = vpv->next) {
430 vpv = st_translate_vertex_program(st, stvp, key);
433 vpv->next = stvp->variants;
434 stvp->variants = vpv;
1157 struct st_vertex_program *stvp = (struct st_vertex_program *) program;
1158 struct st_vp_variant *vpv, **prevPtr = &stvp->variants;
1160 for (vpv = stvp->variants; vpv; ) {
1303 struct st_vertex_program *stvp =
1307 debug_printf("Vertex program %u\n", stvp->Base.Base.Id);
1309 for (stv = stvp->variants; stv; stv = stv->next) {