Lines Matching refs:reg
85 parts.argb[i].reg = c; in init_iterated_color()
88 parts.argb_dx[i].reg = (parts.reload & 2) ? t1 : obtainReg(); in init_iterated_color()
89 const int dvdx = parts.argb_dx[i].reg; in init_iterated_color()
91 MLA(AL, 0, c, x.reg, dvdx, c); in init_iterated_color()
99 MOV(AL, 0, end, reg_imm(parts.count.reg, LSR, 16)); in init_iterated_color()
133 CONTEXT_LOAD(parts.iterated.reg, packed8888); in init_iterated_color()
157 CONTEXT_LOAD(parts.iterated.reg, packed); in init_iterated_color()
159 AND(AL, 0, parts.iterated.reg, in init_iterated_color()
160 parts.iterated.reg, imm(0xFF)); in init_iterated_color()
162 MOV(AL, 0, parts.iterated.reg, in init_iterated_color()
163 reg_imm(parts.iterated.reg, LSR, 16)); in init_iterated_color()
169 build_and_immediate(parts.iterated.reg, parts.iterated.reg, in init_iterated_color()
201 CONTEXT_LOAD(fragment.reg, generated_vars.argb[component].c); in build_iterated_color()
203 ADD(AL, 0, dx, fragment.reg, dx); in build_iterated_color()
206 CONTEXT_LOAD(fragment.reg, generated_vars.argb[component].c); in build_iterated_color()
211 regs.recycle(fragment.reg); in build_iterated_color()
212 fragment.reg = parts.argb[component].reg; in build_iterated_color()
220 BIC(AL, 0, fragment.reg, fragment.reg, in build_iterated_color()
221 reg_imm(fragment.reg, ASR, 31)); in build_iterated_color()
327 int Rx = x.reg; in init_textures()
328 int Ry = y.reg; in init_textures()
347 CONTEXT_LOAD(txPtr.reg, state.texture[i].iterators.ydsdy); in init_textures()
348 ADD(AL, 0, Rx, Rx, reg_imm(txPtr.reg, ASR, 16)); // x += (s>>16) in init_textures()
349 CONTEXT_LOAD(txPtr.reg, state.texture[i].iterators.ydtdy); in init_textures()
350 ADD(AL, 0, Ry, Ry, reg_imm(txPtr.reg, ASR, 16)); // y += (t>>16) in init_textures()
352 CONTEXT_LOAD(txPtr.reg, generated_vars.texture[i].stride); in init_textures()
353 SMLABB(AL, Rx, Ry, txPtr.reg, Rx); // x+y*stride in init_textures()
354 CONTEXT_ADDR_LOAD(txPtr.reg, generated_vars.texture[i].data); in init_textures()
368 CONTEXT_LOAD(s.reg, state.texture[i].iterators.ydsdy); in init_textures()
369 CONTEXT_LOAD(t.reg, state.texture[i].iterators.ydtdy); in init_textures()
373 CONTEXT_LOAD(s.reg, generated_vars.texture[i].dsdx); in init_textures()
375 CONTEXT_LOAD(t.reg, generated_vars.texture[i].dtdx); in init_textures()
377 MLA(AL, 0, s.reg, Rx, s.reg, ydsdy); in init_textures()
378 MLA(AL, 0, t.reg, Rx, t.reg, ydtdy); in init_textures()
382 CONTEXT_STORE(s.reg, generated_vars.texture[i].spill[0]); in init_textures()
383 CONTEXT_STORE(t.reg, generated_vars.texture[i].spill[1]); in init_textures()
384 recycleReg(s.reg); in init_textures()
385 recycleReg(t.reg); in init_textures()
415 if (parts.z.reg > 0 && parts.covPtr.reg > 0) in build_textures()
416 spill_list |= 1<<parts.covPtr.reg; in build_textures()
420 if (parts.z.reg > 0) in build_textures()
421 spill_list |= 1<<parts.z.reg; in build_textures()
422 if (parts.covPtr.reg > 0) in build_textures()
423 spill_list |= 1<<parts.covPtr.reg; in build_textures()
451 s.reg = scratches.obtain(); in build_textures()
452 t.reg = scratches.obtain(); in build_textures()
453 CONTEXT_LOAD(s.reg, generated_vars.texture[i].spill[0]); in build_textures()
454 CONTEXT_LOAD(t.reg, generated_vars.texture[i].spill[1]); in build_textures()
499 wrapping(u, s.reg, width, tmu.swrap, FRAC_BITS); in build_textures()
500 wrapping(v, t.reg, height, tmu.twrap, FRAC_BITS); in build_textures()
601 ADD(AL, 0, s.reg, s.reg, dsdx); in build_textures()
602 ADD(AL, 0, t.reg, t.reg, dtdx); in build_textures()
604 CONTEXT_STORE(s.reg, generated_vars.texture[i].spill[0]); in build_textures()
605 CONTEXT_STORE(t.reg, generated_vars.texture[i].spill[1]); in build_textures()
606 scratches.recycle(s.reg); in build_textures()
607 scratches.recycle(t.reg); in build_textures()
615 txPtr.setTo(texel.reg, tmu.bits); in build_textures()
622 CONTEXT_ADDR_LOAD(txPtr.reg, generated_vars.texture[i].data); in build_textures()
660 ADD(AL, 0, txPtr.reg, txPtr.reg, imm(txPtr.size>>3)); in build_iterate_texture_coordinates()
663 int s = parts.coords[i].s.reg; in build_iterate_texture_coordinates()
664 int t = parts.coords[i].t.reg; in build_iterate_texture_coordinates()
697 LDRB(AL, texel.reg, txPtr.reg); in filter8()
719 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(offset)); in filter8()
726 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(lb)); in filter8()
733 LDRB(AL, pixel, txPtr.reg); in filter8()
738 LDRB(AL, pixel, txPtr.reg, reg_scale_pre(rt)); in filter8()
740 SMLABB(AL, texel.reg, pixel, u, d); in filter8()
788 LDRH(AL, texel.reg, txPtr.reg); in filter16()
821 LDRH(AL, pixel, txPtr.reg, reg_pre(offset)); in filter16()
836 LDRH(AL, pixel, txPtr.reg, reg_pre(offset)); in filter16()
850 LDRH(AL, pixel, txPtr.reg); in filter16()
863 LDRH(AL, pixel, txPtr.reg, reg_pre(offset)); in filter16()
867 MLA(AL, 0, texel.reg, pixel, u, d); in filter16()
911 LDR(AL, pixel, txPtr.reg, reg_scale_pre(offset)); in filter32()
927 LDR(AL, pixel, txPtr.reg, reg_scale_pre(offset)); in filter32()
942 LDR(AL, pixel, txPtr.reg); in filter32()
956 LDR(AL, pixel, txPtr.reg, reg_scale_pre(offset)); in filter32()
965 ORR(AL, 0, texel.reg, dh, dl); in filter32()
991 texel.reg = scratches.obtain(); in build_texture_environment()
1078 RSB(AL, 0, dest.reg, texel.reg, reg_imm(texel.reg, LSL, incoming.h)); in modulate()
1079 AND(AL, 0, dest.reg, dest.reg, incoming.reg); in modulate()
1084 MOV(AL, 0, dest.reg, reg_imm(incoming.reg, LSL, 31-incoming.h)); in modulate()
1085 AND(AL, 0, dest.reg, texel.reg, reg_imm(dest.reg, ASR, 31)); in modulate()
1089 int inReg = incoming.reg; in modulate()
1105 MOV(AL, 0, dest.reg, reg_imm(inReg, LSR, shift)); in modulate()
1106 inReg = dest.reg; in modulate()
1112 ADD(AL, 0, dest.reg, inReg, reg_imm(inReg, LSR, Ni-1)); in modulate()
1113 if (Nt<16 && Ni<16) SMULBB(AL, dest.reg, texel.reg, dest.reg); in modulate()
1114 else MUL(AL, 0, dest.reg, texel.reg, dest.reg); in modulate()
1120 MOV(AL, 0, dest.reg, reg_imm(inReg, LSR, shift)); in modulate()
1121 inReg = dest.reg; in modulate()
1128 int t = (texel.flags & CORRUPTIBLE) ? texel.reg : dest.reg; in modulate()
1131 ADD(AL, 0, t, texel.reg, reg_imm(texel.reg, LSR, Nt-1)); in modulate()
1133 if (shift==16) SMULBT(AL, dest.reg, t, inReg); in modulate()
1134 else SMULBB(AL, dest.reg, t, inReg); in modulate()
1135 } else MUL(AL, 0, dest.reg, t, inReg); in modulate()
1170 integer_t incomingNorm(incoming.reg, Ni, incoming.flags); in decal()
1172 MOV(AL, 0, dest.reg, reg_imm(incomingNorm.reg, LSR, shift)); in decal()
1173 incomingNorm.reg = dest.reg; in decal()
1176 ADD(AL, 0, factor.reg, factor.reg, reg_imm(factor.reg, LSR, factor.s-1)); in decal()
1197 LDRB(AL, color.reg, mBuilderContext.Rctx, in blend()
1208 integer_t incomingNorm(incoming.reg, Ni, incoming.flags); in blend()
1210 MOV(AL, 0, dest.reg, reg_imm(incomingNorm.reg, LSR, shift)); in blend()
1211 incomingNorm.reg = dest.reg; in blend()
1214 ADD(AL, 0, factor.reg, factor.reg, reg_imm(factor.reg, LSR, factor.s-1)); in blend()
1231 integer_t texel(dest.reg, 32, CORRUPTIBLE); in add()
1232 if (dest.reg == incomingTemp.reg) in add()
1233 texel.reg = locals.obtain(); in add()
1242 incomingTemp.reg = locals.obtain(); in add()
1248 ADD(AL, 0, dest.reg, texel.reg, in add()
1249 reg_imm(incomingTemp.reg, LSR, incomingTemp.l)); in add()
1251 ADD(AL, 0, dest.reg, texel.reg, incomingTemp.reg); in add()