Lines Matching refs:temp
32 component_t& temp, // incomming fragment / output
40 integer_t fragment(temp.reg, temp.h, temp.flags);
41 if (!(temp.flags & CORRUPTIBLE)) {
42 temp.reg = regs.obtain();
43 temp.flags |= CORRUPTIBLE;
59 build_blendFOneMinusF(temp, factor, fragment, fogColor);
64 component_t& temp, // incomming fragment / output
77 if (!temp.size()) {
81 temp = component_t(regs.obtain(), CORRUPTIBLE);
87 // temp: component_t(fragment) and result
127 if (fb.size() < temp.size()) {
129 int new_size = temp.size() < 8 ? temp.size() : 8;
137 if (temp.l && (temp.flags & CORRUPTIBLE)) {
138 MOV(AL, 0, temp.reg, reg_imm(temp.reg, LSR, temp.l));
139 temp.h -= temp.l;
140 temp.l = 0;
142 integer_t fragment(temp.reg, temp.size(), temp.flags);
145 if (temp.l) {
146 // here we know temp is not CORRUPTIBLE
148 MOV(AL, 0, fragment.reg, reg_imm(temp.reg, LSR, temp.l));
152 if (!(temp.flags & CORRUPTIBLE)) {
153 // temp is not corruptible, but since it's the destination it
155 temp.reg = regs.obtain();
156 temp.flags &= ~CORRUPTIBLE;
174 build_blendFOneMinusF(temp, factor, fragment, fb);
182 build_blendOneMinusFF(temp, factor, fragment, fb);
211 mul_factor(temp, fb, dst_factor);
217 component_add(temp, fb, fragment); // args order matters
218 component_sat(temp);
223 mul_factor_add(temp, fb, dst_factor, component_t(fragment));
224 component_sat(temp);
231 mul_factor(temp, fragment, src_factor);
233 mul_factor_add(temp, fragment, src_factor, component_t(fb));
234 component_sat(temp);
236 mul_factor(temp, fragment, src_factor);
242 mul_factor_add(temp, fb, dst_factor, temp);
244 component_sat(temp);
251 temp.flags |= CORRUPTIBLE;
436 component_t& temp,
450 mul_factor_add(temp, diff, factor, component_t(fb));
454 component_t& temp,
468 mul_factor_add(temp, diff, factor, component_t(fragment));
607 int temp = d.reg;
608 if (temp == add.reg) {
610 if (v.flags & CORRUPTIBLE) temp = v.reg;
611 else if (f.flags & CORRUPTIBLE) temp = f.reg;
612 else temp = scratches.obtain();
615 if (vs<16 && fs<16) SMULBB(AL, temp, v.reg, f.reg);
616 else MUL(AL, 0, temp, v.reg, f.reg);
619 ADD(AL, 0, d.reg, temp, reg_imm(add.reg, LSL, ms-as));
622 ADD(AL, 0, d.reg, temp, reg_imm(add.reg, LSR, as-ms));