Lines Matching defs:arg

1204 ps_do_ts_op(struct ps_build_ctx *ps, unsigned top, struct ureg_dst dst, struct ureg_src *arg)
1223 if (!is_MOV_no_op(dst, arg[1]))
1224 ureg_MOV(ureg, dst, arg[1]);
1227 if (!is_MOV_no_op(dst, arg[2]))
1228 ureg_MOV(ureg, dst, arg[2]);
1231 ureg_MUL(ureg, dst, arg[1], arg[2]);
1234 ureg_MUL(ureg, tmp, arg[1], arg[2]);
1238 ureg_MUL(ureg, tmp, arg[1], arg[2]);
1242 ureg_ADD(ureg, dst, arg[1], arg[2]);
1245 ureg_ADD(ureg, tmp, arg[1], arg[2]);
1249 ureg_ADD(ureg, tmp, arg[1], arg[2]);
1253 ureg_ADD(ureg, dst, arg[1], ureg_negate(arg[2]));
1256 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 1.0f), ureg_negate(arg[1]));
1257 ureg_MAD(ureg, dst, ureg_src(tmp), arg[2], arg[1]);
1260 ureg_LRP(ureg, dst, _WWWW(ps->vC[0]), arg[1], arg[2]);
1264 ureg_LRP(ureg, dst, _W(ps->rTex), arg[1], arg[2]);
1267 ureg_LRP(ureg, dst, _WWWW(_CONST(20)), arg[1], arg[2]);
1271 ureg_MAD(ureg, dst, arg[2], _X(tmp), arg[1]);
1274 ureg_LRP(ureg, dst, _WWWW(ps->rCurSrc), arg[1], arg[2]);
1277 ureg_MOV(ureg, dst, arg[1]);
1281 ureg_MAD(ureg, dst, _WWWW(arg[1]), arg[2], arg[1]);
1284 ureg_MAD(ureg, dst, arg[1], arg[2], _WWWW(arg[1]));
1287 ureg_ADD(ureg, tmp_x, ureg_imm1f(ureg, 1.0f), ureg_negate(_WWWW(arg[1])));
1288 ureg_MAD(ureg, dst, _X(tmp), arg[2], arg[1]);
1291 ureg_ADD(ureg, tmp, ureg_imm1f(ureg, 1.0f), ureg_negate(arg[1]));
1292 ureg_MAD(ureg, dst, ureg_src(tmp), arg[2], _WWWW(arg[1]));
1299 ureg_ADD(ureg, tmp, arg[1], ureg_imm4f(ureg,-0.5,-0.5,-0.5,-0.5));
1300 ureg_ADD(ureg, tmp2, arg[2] , ureg_imm4f(ureg,-0.5,-0.5,-0.5,-0.5));
1305 ureg_MAD(ureg, dst, arg[1], arg[2], arg[0]);
1308 ureg_LRP(ureg, dst, arg[0], arg[1], arg[2]);
1399 struct ureg_src arg[3];
1492 if (used_c & 0x1) arg[0] = ps_get_ts_arg(&ps, colorarg[0]);
1493 if (used_c & 0x2) arg[1] = ps_get_ts_arg(&ps, colorarg[1]);
1494 if (used_c & 0x4) arg[2] = ps_get_ts_arg(&ps, colorarg[2]);
1495 ps_do_ts_op(&ps, key->ts[s].colorop, dst, arg);
1500 if (used_a & 0x1) arg[0] = ps_get_ts_arg(&ps, alphaarg[0]);
1501 if (used_a & 0x2) arg[1] = ps_get_ts_arg(&ps, alphaarg[1]);
1502 if (used_a & 0x4) arg[2] = ps_get_ts_arg(&ps, alphaarg[2]);
1503 ps_do_ts_op(&ps, key->ts[s].alphaop, dst, arg);