• Home
  • Raw
  • Download

Lines Matching refs:emit_op2

622 #define emit_op2(p, op, dst, mask, src0, src1) \  macro
651 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_X, src, mat[0]); in emit_matrix_transform_vec4()
652 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Y, src, mat[1]); in emit_matrix_transform_vec4()
653 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_Z, src, mat[2]); in emit_matrix_transform_vec4()
654 emit_op2(p, OPCODE_DP4, dest, WRITEMASK_W, src, mat[3]); in emit_matrix_transform_vec4()
674 emit_op2(p, OPCODE_MUL, tmp, 0, swizzle1(src,X), mat[0]); in emit_transpose_matrix_transform_vec4()
689 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_X, src, mat[0]); in emit_matrix_transform_vec3()
690 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_Y, src, mat[1]); in emit_matrix_transform_vec3()
691 emit_op2(p, OPCODE_DP3, dest, WRITEMASK_Z, src, mat[2]); in emit_matrix_transform_vec3()
700 emit_op2(p, OPCODE_DP3, tmp, WRITEMASK_X, src, src); in emit_normalize_vec3()
702 emit_op2(p, OPCODE_MUL, dest, 0, src, swizzle1(tmp, X)); in emit_normalize_vec3()
756 emit_op2(p, OPCODE_DP4, p->eye_position_z, 0, pos, modelview[2]); in get_eye_position_z()
812 emit_op2( p, OPCODE_MUL, transformed_normal, 0, normal, rescale ); in get_transformed_normal()
925 emit_op2(p, OPCODE_MUL, tmp, 0, light_value, material_value); in get_lightprod()
952 emit_op2(p, OPCODE_DP3, spot, 0, negate(VPpli), spot_dir_norm); in calculate_light_attenuation()
953 emit_op2(p, OPCODE_SLT, slt, 0, swizzle1(spot_dir_norm,W), spot); in calculate_light_attenuation()
955 emit_op2(p, OPCODE_POW, spot, 0, spot, swizzle1(attenuation, W)); in calculate_light_attenuation()
956 emit_op2(p, OPCODE_MUL, att, 0, slt, spot); in calculate_light_attenuation()
972 emit_op2(p, OPCODE_MUL, dist, WRITEMASK_XZ, dist, swizzle1(dist,Y)); in calculate_light_attenuation()
974 emit_op2(p, OPCODE_DP3, dist, 0, attenuation, dist); in calculate_light_attenuation()
980 emit_op2(p, OPCODE_MUL, att, 0, dist, att); in calculate_light_attenuation()
1009 emit_op2(p, OPCODE_MAX, lit, WRITEMASK_XYZW, id, dots); in emit_degenerate_lit()
1014 emit_op2(p, OPCODE_SLT, lit, WRITEMASK_Z, swizzle1(id,Z), dots); in emit_degenerate_lit()
1127 emit_op2(p, OPCODE_SUB, VPpli, 0, Ppli, V); in build_lighting()
1132 emit_op2(p, OPCODE_DP3, dist, 0, VPpli, VPpli); in build_lighting()
1134 emit_op2(p, OPCODE_MUL, VPpli, 0, VPpli, dist); in build_lighting()
1148 emit_op2(p, OPCODE_SUB, half, 0, VPpli, eye_hat); in build_lighting()
1156 emit_op2(p, OPCODE_ADD, half, 0, VPpli, z_dir); in build_lighting()
1164 emit_op2(p, OPCODE_DP3, dots, 0, normal, VPpli); in build_lighting()
1167 emit_op2(p, OPCODE_DP3, dots, WRITEMASK_X, normal, VPpli); in build_lighting()
1168 emit_op2(p, OPCODE_DP3, dots, WRITEMASK_Y, normal, half); in build_lighting()
1204 emit_op2(p, OPCODE_MUL, lit, 0, lit, att); in build_lighting()
1210 emit_op2(p, OPCODE_ADD, _col0, 0, ambient, _col0); in build_lighting()
1215 emit_op2(p, OPCODE_ADD, _col0, 0, ambient, _col0); in build_lighting()
1265 emit_op2(p, OPCODE_MUL, lit, 0, lit, att); in build_lighting()
1270 emit_op2(p, OPCODE_ADD, _bfc0, 0, ambient, _bfc0); /**/ in build_lighting()
1274 emit_op2(p, OPCODE_ADD, _bfc0, 0, ambient, _bfc0); in build_lighting()
1309 emit_op2(p, OPCODE_DP3, fog, WRITEMASK_X, input, input); in build_fog()
1345 emit_op2(p, OPCODE_DP3, tmp, 0, normal, eye_hat); in build_reflect_texgen()
1347 emit_op2(p, OPCODE_ADD, tmp, 0, tmp, tmp); in build_reflect_texgen()
1376 emit_op2(p, OPCODE_DP3, tmp, 0, normal, eye_hat); in build_sphere_texgen()
1378 emit_op2(p, OPCODE_ADD, tmp, 0, tmp, tmp); in build_sphere_texgen()
1382 emit_op2(p, OPCODE_ADD, tmp, 0, r, swizzle(id,X,Y,W,Z)); in build_sphere_texgen()
1384 emit_op2(p, OPCODE_DP3, tmp, 0, tmp, tmp); in build_sphere_texgen()
1388 emit_op2(p, OPCODE_MUL, inv_m, 0, tmp, half); in build_sphere_texgen()
1442 emit_op2(p, OPCODE_DP4, out_texgen, WRITEMASK_X << j, in build_texture_transform()
1452 emit_op2(p, OPCODE_DP4, out_texgen, WRITEMASK_X << j, in build_texture_transform()
1539 emit_op2(p, OPCODE_MUL, out, WRITEMASK_X, ut, state_size); in build_atten_pointsize()
1544 emit_op2(p, OPCODE_MUL, ut, WRITEMASK_X, ut, state_size); in build_atten_pointsize()
1545 emit_op2(p, OPCODE_MAX, ut, WRITEMASK_X, ut, swizzle1(state_size, Y)); in build_atten_pointsize()
1546 emit_op2(p, OPCODE_MIN, out, WRITEMASK_X, ut, swizzle1(state_size, Z)); in build_atten_pointsize()