Lines Matching defs:dist
952 struct ureg dist )
981 if (p->state->unit[i].light_attenuated && !is_undef(dist)) {
989 emit_op1(p, OPCODE_RCP, dist, WRITEMASK_YZ, dist);
991 emit_op2(p, OPCODE_MUL, dist, WRITEMASK_XZ, dist, swizzle1(dist,Y));
992 /* 1/dist-atten */
993 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist);
996 /* dist-atten */
997 emit_op1(p, OPCODE_RCP, dist, 0, dist);
998 /* spot-atten * dist-atten */
999 emit_op2(p, OPCODE_MUL, att, 0, dist, att);
1002 /* dist-atten */
1003 emit_op1(p, OPCODE_RCP, att, 0, dist);
1179 struct ureg dist = undef;
1189 dist = get_temp(p);
1195 /* Normalize VPpli. The dist value also used in
1198 emit_op2(p, OPCODE_DP3, dist, 0, VPpli, VPpli);
1199 emit_op1(p, OPCODE_RSQ, dist, 0, dist);
1200 emit_op2(p, OPCODE_MUL, VPpli, 0, VPpli, dist);
1205 att = calculate_light_attenuation(p, i, VPpli, dist);
1206 release_temp(p, dist);
1613 /* dist = |eyez| */
1615 /* p1 + dist * (p2 + dist * p3); */