Lines Matching refs:fragment
40 integer_t fragment(temp.reg, temp.h, temp.flags); in build_fog() local
59 build_blendFOneMinusF(temp, factor, fragment, fogColor); in build_fog()
142 integer_t fragment(temp.reg, temp.size(), temp.flags); in build_blending() local
147 fragment.reg = scratches.obtain(); in build_blending()
148 MOV(AL, 0, fragment.reg, reg_imm(temp.reg, LSR, temp.l)); in build_blending()
149 fragment.flags |= CORRUPTIBLE; in build_blending()
157 fragment.flags &= ~CORRUPTIBLE; in build_blending()
163 fragment.flags &= ~CORRUPTIBLE; in build_blending()
171 component, pixel, fragment, fb, scratches); in build_blending()
174 build_blendFOneMinusF(temp, factor, fragment, fb); in build_blending()
181 component, pixel, fragment, fb, scratches); in build_blending()
182 build_blendOneMinusFF(temp, factor, fragment, fb); in build_blending()
210 component, pixel, fragment, fb, scratches); in build_blending()
217 component_add(temp, fb, fragment); // args order matters in build_blending()
222 component, pixel, fragment, fb, scratches); in build_blending()
223 mul_factor_add(temp, fb, dst_factor, component_t(fragment)); in build_blending()
229 component, pixel, fragment, fb, scratches); in build_blending()
231 mul_factor(temp, fragment, src_factor); in build_blending()
233 mul_factor_add(temp, fragment, src_factor, component_t(fb)); in build_blending()
236 mul_factor(temp, fragment, src_factor); in build_blending()
241 component, pixel, fragment, fb, scratches); in build_blending()
257 integer_t& fragment, in build_blend_factor() argument
261 integer_t src_alpha(fragment); in build_blend_factor()
313 if (fragment.flags & CORRUPTIBLE) { in build_blend_factor()
314 factor.setTo(fragment.reg, 32, CORRUPTIBLE); in build_blend_factor()
315 fragment.flags &= ~CORRUPTIBLE; in build_blend_factor()
335 factor.s = fragment.s; in build_blend_factor()
336 ADD(AL, 0, factor.reg, fragment.reg, in build_blend_factor()
337 reg_imm(fragment.reg, LSR, fragment.s-1)); in build_blend_factor()
438 const integer_t& fragment, in build_blendFOneMinusF() argument
444 integer_t diff(fragment.flags & CORRUPTIBLE ? in build_blendFOneMinusF()
445 fragment.reg : scratches.obtain(), fb.size(), CORRUPTIBLE); in build_blendFOneMinusF()
446 const int shift = fragment.size() - fb.size(); in build_blendFOneMinusF()
447 if (shift>0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendFOneMinusF()
448 else if (shift<0) RSB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendFOneMinusF()
449 else RSB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendFOneMinusF()
456 const integer_t& fragment, in build_blendOneMinusFF() argument
464 const int shift = fragment.size() - fb.size(); in build_blendOneMinusFF()
465 if (shift>0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSR, shift)); in build_blendOneMinusFF()
466 else if (shift<0) SUB(AL, 0, diff.reg, fb.reg, reg_imm(fragment.reg, LSL,-shift)); in build_blendOneMinusFF()
467 else SUB(AL, 0, diff.reg, fb.reg, fragment.reg); in build_blendOneMinusFF()
468 mul_factor_add(temp, diff, factor, component_t(fragment)); in build_blendOneMinusFF()