Lines Matching defs:emit_op2

625 #define emit_op2(p, op, dst, mask, src0, src1) \
654 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_X, src, mat[0]);
655 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Y, src, mat[1]);
656 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Z, src, mat[2]);
657 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_W, src, mat[3]);
677 emit_op2(p, OPCODE_MUL, tmp, 0, swizzle1(src,X), mat[0]);
692 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_X, src, mat[0]);
693 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_Y, src, mat[1]);
694 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_Z, src, mat[2]);
703 emit_op2(p, OPCODE_DP3, tmp, WRITEMASK_X, src, src);
705 emit_op2(p, OPCODE_MUL, dest, 0, src, swizzle1(tmp, X));
759 emit_op2(p, OPCODE_DP4, p->eye_position_z, 0, pos, modelview[2]);
814 emit_op2( p, OPCODE_MUL, transformed_normal, 0, normal, rescale );
967 emit_op2(p, OPCODE_DP3, spot, 0, negate(VPpli), spot_dir_norm);
968 emit_op2(p, OPCODE_SLT, slt, 0, swizzle1(spot_dir_norm,W), spot);
970 emit_op2(p, OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W));
971 emit_op2(p, OPCODE_MUL, att, 0, slt, spot);
991 emit_op2(p, OPCODE_MUL, dist, WRITEMASK_XZ, dist, swizzle1(dist,Y));
993 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist);
999 emit_op2(p, OPCODE_MUL, att, 0, dist, att);
1028 emit_op2(p, OPCODE_MAX, lit, WRITEMASK_XYZW, id, dots);
1033 emit_op2(p, OPCODE_SLT, lit, WRITEMASK_Z, swizzle1(id,Z), dots);
1193 emit_op2(p, OPCODE_SUB, VPpli, 0, Ppli, V);
1198 emit_op2(p, OPCODE_DP3, dist, 0, VPpli, VPpli);
1200 emit_op2(p, OPCODE_MUL, VPpli, 0, VPpli, dist);
1214 emit_op2(p, OPCODE_SUB, half, 0, VPpli, eye_hat);
1221 emit_op2(p, OPCODE_ADD, half, 0, VPpli, z_dir);
1229 emit_op2(p, OPCODE_DP3, dots, 0, normal, VPpli);
1232 emit_op2(p, OPCODE_DP3, dots, WRITEMASK_X, normal, VPpli);
1233 emit_op2(p, OPCODE_DP3, dots, WRITEMASK_Y, normal, half);
1246 emit_op2(p, OPCODE_MUL, tmp, 0, lightprod_front[i][j], material_value);
1281 emit_op2(p, OPCODE_MUL, lit, 0, lit, att);
1287 emit_op2(p, OPCODE_ADD, _col0, 0, ambient, _col0);
1292 emit_op2(p, OPCODE_ADD, _col0, 0, ambient, _col0);
1313 emit_op2(p, OPCODE_MUL, tmp, 1, lightprod_back[i][j], material_value);
1354 emit_op2(p, OPCODE_MUL, lit, 0, lit, att);
1359 emit_op2(p, OPCODE_ADD, _bfc0, 0, ambient, _bfc0); /**/
1363 emit_op2(p, OPCODE_ADD, _bfc0, 0, ambient, _bfc0);
1397 emit_op2(p, OPCODE_DP3, tmp, WRITEMASK_X, input, input);
1432 emit_op2(p, OPCODE_DP3, tmp, 0, normal, eye_hat);
1434 emit_op2(p, OPCODE_ADD, tmp, 0, tmp, tmp);
1463 emit_op2(p, OPCODE_DP3, tmp, 0, normal, eye_hat);
1465 emit_op2(p, OPCODE_ADD, tmp, 0, tmp, tmp);
1469 emit_op2(p, OPCODE_ADD, tmp, 0, r, swizzle(id,X,Y,W,Z));
1471 emit_op2(p, OPCODE_DP3, tmp, 0, tmp, tmp);
1475 emit_op2(p, OPCODE_MUL, inv_m, 0, tmp, half);
1529 emit_op2(p, OPCODE_DP4, out_texgen, WRITEMASK_X << j,
1539 emit_op2(p, OPCODE_DP4, out_texgen, WRITEMASK_X << j,
1626 emit_op2(p, OPCODE_MUL, out, WRITEMASK_X, ut, state_size);
1631 emit_op2(p, OPCODE_MUL, ut, WRITEMASK_X, ut, state_size);
1632 emit_op2(p, OPCODE_MAX, ut, WRITEMASK_X, ut, swizzle1(state_size, Y));
1633 emit_op2(p, OPCODE_MIN, out, WRITEMASK_X, ut, swizzle1(state_size, Z));