Lines Matching refs:stvp
410 struct st_vertex_program *stvp = (struct st_vertex_program *)stp; in st_prepare_vertex_program() local
412 stvp->num_inputs = 0; in st_prepare_vertex_program()
413 memset(stvp->input_to_index, ~0, sizeof(stvp->input_to_index)); in st_prepare_vertex_program()
414 memset(stvp->result_to_output, ~0, sizeof(stvp->result_to_output)); in st_prepare_vertex_program()
421 stvp->input_to_index[attr] = stvp->num_inputs; in st_prepare_vertex_program()
422 stvp->index_to_input[stvp->num_inputs] = attr; in st_prepare_vertex_program()
423 stvp->num_inputs++; in st_prepare_vertex_program()
427 stvp->index_to_input[stvp->num_inputs] = ST_DOUBLE_ATTRIB_PLACEHOLDER; in st_prepare_vertex_program()
428 stvp->num_inputs++; in st_prepare_vertex_program()
433 stvp->input_to_index[VERT_ATTRIB_EDGEFLAG] = stvp->num_inputs; in st_prepare_vertex_program()
434 stvp->index_to_input[stvp->num_inputs] = VERT_ATTRIB_EDGEFLAG; in st_prepare_vertex_program()
440 stvp->result_to_output[attr] = num_outputs++; in st_prepare_vertex_program()
443 stvp->result_to_output[VARYING_SLOT_EDGE] = num_outputs; in st_prepare_vertex_program()
573 struct st_vertex_program *stvp = (struct st_vertex_program *)stp; in st_translate_vertex_program() local
582 stvp->num_inputs, in st_translate_vertex_program()
583 stvp->input_to_index, in st_translate_vertex_program()
590 stvp->result_to_output, in st_translate_vertex_program()
603 stvp->num_inputs, in st_translate_vertex_program()
604 stvp->input_to_index, in st_translate_vertex_program()
610 stvp->result_to_output, in st_translate_vertex_program()
701 struct st_program *stvp, in st_create_vp_variant() argument
710 struct gl_program_parameter_list *params = stvp->Base.Parameters; in st_create_vp_variant()
714 state.stream_output = stvp->state.stream_output; in st_create_vp_variant()
716 if (stvp->state.type == PIPE_SHADER_IR_NIR && in st_create_vp_variant()
721 state.ir.nir = get_nir_shader(st, stvp); in st_create_vp_variant()
744 st_finalize_nir(st, &stvp->Base, stvp->shader_program, state.ir.nir, in st_create_vp_variant()
764 state.tokens = tgsi_dup_tokens(stvp->state.tokens); in st_create_vp_variant()
819 struct st_vertex_program *stvp = (struct st_vertex_program *)stp; in st_get_vp_variant() local
836 unsigned num_inputs = stvp->num_inputs + key->passthrough_edgeflags; in st_get_vp_variant()
838 unsigned attr = stvp->index_to_input[index]; in st_get_vp_variant()