Lines Matching refs:vp

43 	(PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[x]),	\
73 static unsigned long t_dst_index(struct r300_vertex_program_code *vp,
77 return vp->outputs[dst->Index];
122 static unsigned long t_src_index(struct r300_vertex_program_code *vp,
126 assert(vp->inputs[src->Index] != -1);
127 return vp->inputs[src->Index];
140 static unsigned long t_src(struct r300_vertex_program_code *vp,
146 return PVS_SRC_OPERAND(t_src_index(vp, src),
156 static unsigned long t_src_scalar(struct r300_vertex_program_code *vp,
164 return PVS_SRC_OPERAND(t_src_index(vp, src),
174 static int valid_dst(struct r300_vertex_program_code *vp,
177 if (dst->File == RC_FILE_OUTPUT && vp->outputs[dst->Index] == -1) {
186 static void ei_vector1(struct r300_vertex_program_code *vp,
194 t_dst_index(vp, &vpi->DstReg),
197 inst[1] = t_src(vp, &vpi->SrcReg[0]);
202 static void ei_vector2(struct r300_vertex_program_code *vp,
210 t_dst_index(vp, &vpi->DstReg),
213 inst[1] = t_src(vp, &vpi->SrcReg[0]);
214 inst[2] = t_src(vp, &vpi->SrcReg[1]);
218 static void ei_math1(struct r300_vertex_program_code *vp,
226 t_dst_index(vp, &vpi->DstReg),
229 inst[1] = t_src_scalar(vp, &vpi->SrcReg[0]);
234 static void ei_lit(struct r300_vertex_program_code *vp,
243 t_dst_index(vp, &vpi->DstReg),
247 inst[1] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 0)), // X
254 inst[2] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y
261 inst[3] = PVS_SRC_OPERAND(t_src_index(vp, &vpi->SrcReg[0]), t_swizzle(GET_SWZ(vpi->SrcReg[0].Swizzle, 1)), // Y
270 static void ei_mad(struct r300_vertex_program_code *vp,
310 t_dst_index(vp, &vpi->DstReg),
317 t_dst_index(vp, &vpi->DstReg),
338 inst[1] = t_src(vp, &vpi->SrcReg[0]);
339 inst[2] = t_src(vp, &vpi->SrcReg[1]);
340 inst[3] = t_src(vp, &vpi->SrcReg[2]);
343 static void ei_pow(struct r300_vertex_program_code *vp,
350 t_dst_index(vp, &vpi->DstReg),
353 inst[1] = t_src_scalar(vp, &vpi->SrcReg[0]);
355 inst[3] = t_src_scalar(vp, &vpi->SrcReg[1]);