Lines Matching refs:factor
50 integer_t factor(scratches.obtain(), 16, CORRUPTIBLE);
51 CONTEXT_LOAD(factor.reg, generated_vars.f);
53 // clamp fog factor (TODO: see if there is a way to guarantee
55 BIC(AL, 0, factor.reg, factor.reg, reg_imm(factor.reg, ASR, 31));
56 CMP(AL, factor.reg, imm( 0x10000 ));
57 MOV(HS, 0, factor.reg, imm( 0x10000 ));
59 build_blendFOneMinusF(temp, factor, fragment, fogColor);
169 integer_t factor;
170 build_blend_factor(factor, fs,
174 build_blendFOneMinusF(temp, factor, fragment, fb);
177 integer_t factor;
180 build_blend_factor(factor, fd,
182 build_blendOneMinusFF(temp, factor, fragment, fb);
255 integer_t& factor, int f, int component,
265 factor.flags |= CORRUPTIBLE;
277 factor = mAlphaSource;
278 factor.flags &= ~CORRUPTIBLE;
279 // we already computed the blend factor before, nothing to do.
283 // factor properly.
287 // we have a cached alpha blend factor, but we want another one,
295 // (1-factor)
296 factor = mAlphaSource;
297 factor.flags &= ~CORRUPTIBLE;
298 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s)));
311 // help us find out what register we can use for the blend-factor
314 factor.setTo(fragment.reg, 32, CORRUPTIBLE);
317 factor.setTo(fb.reg, 32, CORRUPTIBLE);
320 factor.setTo(scratches.obtain(), 32, CORRUPTIBLE);
330 factor.s = fb.s;
331 ADD(AL, 0, factor.reg, fb.reg, reg_imm(fb.reg, LSR, fb.s-1));
335 factor.s = fragment.s;
336 ADD(AL, 0, factor.reg, fragment.reg,
341 factor.s = src_alpha.s;
342 ADD(AL, 0, factor.reg, src_alpha.reg,
348 extract(factor, dst_pixel, GGLFormat::ALPHA);
349 ADD(AL, 0, factor.reg, factor.reg,
350 reg_imm(factor.reg, LSR, factor.s-1));
365 RSB(AL, 0, factor.reg, factor.reg, imm((1<<factor.s)));
368 // don't need more than 8-bits for the blend factor
370 if (factor.s > 8) {
371 MOV(AL, 0, factor.reg, reg_imm(factor.reg, LSR, factor.s-8));
372 factor.s = 8;
391 // for the blend factor, because we need ALPHA only.
426 // for the blend factor, because we need ALPHA only.
437 const integer_t& factor,
450 mul_factor_add(temp, diff, factor, component_t(fb));
455 const integer_t& factor,
468 mul_factor_add(temp, diff, factor, component_t(fragment));