Lines Matching defs:lit
989 * lit.y = MAX(0, dots.x)
990 * lit.z = SLT(0, dots.x)
993 struct ureg lit,
998 /* Note that lit.x & lit.w will not be examined. Note also that
1002 /* MAX lit, id, dots;
1004 emit_op2(p, OPCODE_MAX, lit, WRITEMASK_XYZW, id, dots);
1007 * SLT lit.z, id.z, dots; # lit.z = (0 < dots.z) ? 1 : 0
1009 emit_op2(p, OPCODE_SLT, lit, WRITEMASK_Z, swizzle1(id,Z), dots);
1023 struct ureg lit = get_temp(p);
1198 emit_op1(p, OPCODE_LIT, lit, 0, dots);
1199 emit_op2(p, OPCODE_MUL, lit, 0, lit, att);
1200 emit_op3(p, OPCODE_MAD, _col0, 0, swizzle1(lit,X), ambient, _col0);
1204 emit_op1(p, OPCODE_LIT, lit, 0, dots);
1209 emit_degenerate_lit(p, lit, dots);
1213 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _col0);
1214 emit_op3(p, OPCODE_MAD, res1, mask1, swizzle1(lit,Z), specular, _col1);
1259 emit_op1(p, OPCODE_LIT, lit, 0, dots);
1260 emit_op2(p, OPCODE_MUL, lit, 0, lit, att);
1261 emit_op3(p, OPCODE_MAD, _bfc0, 0, swizzle1(lit,X), ambient, _bfc0);
1264 emit_op1(p, OPCODE_LIT, lit, 0, dots);
1268 emit_degenerate_lit(p, lit, dots);
1272 emit_op3(p, OPCODE_MAD, res0, mask0, swizzle1(lit,Y), diffuse, _bfc0);
1273 emit_op3(p, OPCODE_MAD, res1, mask1, swizzle1(lit,Z), specular, _bfc1);