Home | History | Annotate | Download | only in program

Lines Matching refs:machine

105                          const struct gl_program_machine *machine)
107 const struct gl_program *prog = machine->CurProgram;
112 reg += machine->AddressReg[0][0];
122 return machine->Temporaries[reg];
128 return machine->VertAttribs[reg];
133 return machine->Attribs[reg][machine->CurElement];
139 return machine->Outputs[reg];
144 return machine->CurProgram->LocalParams[reg];
149 return machine->EnvParams[reg];
163 assert(reg < Elements(machine->SystemValues));
164 return machine->SystemValues[reg];
181 struct gl_program_machine *machine)
188 reg += machine->AddressReg[0][0];
198 return machine->Temporaries[reg];
203 return machine->Outputs[reg];
224 const struct gl_program_machine *machine, GLfloat result[4])
226 const GLfloat *src = get_src_register_pointer(source, machine);
273 const struct gl_program_machine *machine, GLuint result[4])
275 const GLuint *src = (GLuint *) get_src_register_pointer(source, machine);
305 const struct gl_program_machine *machine,
309 source->Index < (GLint) machine->NumDeriv) {
310 const GLint col = machine->CurElement;
311 const GLfloat w = machine->Attribs[FRAG_ATTRIB_WPOS][col][3];
316 deriv[0] = machine->DerivX[source->Index][0] * invQ;
317 deriv[1] = machine->DerivX[source->Index][1] * invQ;
318 deriv[2] = machine->DerivX[source->Index][2] * invQ;
319 deriv[3] = machine->DerivX[source->Index][3] * invQ;
322 deriv[0] = machine->DerivY[source->Index][0] * invQ;
323 deriv[1] = machine->DerivY[source->Index][1] * invQ;
324 deriv[2] = machine->DerivY[source->Index][2] * invQ;
325 deriv[3] = machine->DerivY[source->Index][3] * invQ;
358 const struct gl_program_machine *machine, GLfloat result[4])
360 const GLfloat *src = get_src_register_pointer(source, machine);
376 const struct gl_program_machine *machine)
378 const GLuint *src = (GLuint *) get_src_register_pointer(source, machine);
388 const struct gl_program_machine *machine,
393 const GLuint unit = machine->Samplers[inst->TexSrcUnit];
397 if (machine->NumDeriv > 0 &&
402 machine->FetchTexelDeriv(ctx, texcoord,
403 machine->DerivX[attr],
404 machine->DerivY[attr],
408 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color);
455 eval_condition(const struct gl_program_machine *machine,
460 if (test_cc(machine->CondCodes[GET_SWZ(swizzle, 0)], condMask) ||
461 test_cc(machine->CondCodes[GET_SWZ(swizzle, 1)], condMask) ||
462 test_cc(machine->CondCodes[GET_SWZ(swizzle, 2)], condMask) ||
463 test_cc(machine->CondCodes[GET_SWZ(swizzle, 3)], condMask)) {
479 struct gl_program_machine *machine, const GLfloat value[4])
485 GLfloat *dst = get_dst_register_pointer(dstReg, machine);
506 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 0)],
511 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 1)],
516 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 2)],
521 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 3)],
545 machine->CondCodes[0] = generate_cc(value[0]);
547 machine->CondCodes[1] = generate_cc(value[1]);
549 machine->CondCodes[2] = generate_cc(value[2]);
551 machine->CondCodes[3] = generate_cc(value[3]);
554 _mesa_condcode_string(machine
555 _mesa_condcode_string(machine->CondCodes[1]),
556 _mesa_condcode_string(machine->CondCodes[2]),
557 _mesa_condcode_string(machine->CondCodes[3]));
568 struct gl_program_machine *machine, const GLuint value[4])
572 GLuint *dst = (GLuint *) get_dst_register_pointer(dstReg, machine);
577 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 0)],
582 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 1)],
587 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 2)],
592 if (!test_cc(machine->CondCodes[GET_SWZ(dstReg->CondSwizzle, 3)],
609 machine->CondCodes[0] = generate_cc((float)value[0]);
611 machine->CondCodes[1] = generate_cc((float)value[1]);
613 machine->CondCodes[2] = generate_cc((float)value[2]);
615 machine->CondCodes[3] = generate_cc((float)value[3]);
618 _mesa_condcode_string(machine->CondCodes[0]),
619 _mesa_condcode_string(machine->CondCodes[1]),
620 _mesa_condcode_string(machine->CondCodes[2]),
621 _mesa_condcode_string(machine->CondCodes[3]));
633 * \param machine machine state (must be initialized)
639 struct gl_program_machine *machine)
645 machine->CurProgram = program;
652 machine->EnvParams = ctx->VertexProgram.Parameters;
655 machine->EnvParams = ctx->FragmentProgram.Parameters;
669 fetch_vector4(&inst->SrcReg[0], machine, a);
674 store_vector4(inst, machine, result);
680 fetch_vector4(&inst->SrcReg[0], machine, a);
681 fetch_vector4(&inst->SrcReg[1], machine, b);
686 store_vector4(inst, machine, result);
697 fetch_vector4ui(&inst->SrcReg[0], machine, a);
698 fetch_vector4ui(&inst->SrcReg[1], machine, b);
703 store_vector4ui(inst, machine, result);
709 fetch_vector4(&inst->SrcReg[0], machine, t);
710 machine->AddressReg[0][0] = IFLOOR(t[0]);
712 printf("ARL %d\n", machine->AddressReg[0][0]);
732 if (eval_condition(machine, inst)) {
741 if (eval_condition(machine, inst)) {
750 if (eval_condition(machine, inst)) {
757 if (eval_condition(machine, inst)) {
759 if (machine->StackDepth >= MAX_PROGRAM_CALL_DEPTH) {
762 machine->CallStack[machine->StackDepth++] = pc + 1; /* next inst */
770 fetch_vector4(&inst->SrcReg[0], machine, a);
771 fetch_vector4(&inst->SrcReg[1], machine, b);
772 fetch_vector4(&inst->SrcReg[2], machine, c);
777 store_vector4(inst, machine, result);
790 fetch_vector1(&inst->SrcReg[0], machine, a);
793 store_vector4(inst, machine, result);
799 fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine,
801 store_vector4(inst, machine, result);
807 fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine,
809 store_vector4(inst, machine, result);
815 fetch_vector4(&inst->SrcReg[0], machine, a);
816 fetch_vector4(&inst->SrcReg[1], machine, b);
818 store_vector4(inst, machine, result);
828 fetch_vector4(&inst->SrcReg[0], machine, a);
829 fetch_vector4(&inst->SrcReg[1], machine, b);
830 fetch_vector1(&inst->SrcReg[1], machine, &c);
832 store_vector4(inst, machine, result);
842 fetch_vector4(&inst->SrcReg[0], machine, a);
843 fetch_vector4(&inst->SrcReg[1], machine, b);
845 store_vector4(inst, machine, result);
855 fetch_vector4(&inst->SrcReg[0], machine, a);
856 fetch_vector4(&inst->SrcReg[1], machine, b);
858 store_vector4(inst, machine, result);
869 fetch_vector4(&inst->SrcReg[0], machine, a);
870 fetch_vector4(&inst->SrcReg[1], machine, b);
872 store_vector4(inst, machine, result);
878 fetch_vector4(&inst->SrcReg[0], machine, a);
879 fetch_vector4(&inst->SrcReg[1], machine, b);
884 store_vector4(inst, machine, result);
890 fetch_vector1(&inst->SrcReg[0], machine, t);
910 store_vector4( inst, machine, q );
916 fetch_vector1(&inst->SrcReg[0], machine, a);
923 store_vector4(inst, machine, result);
929 fetch_vector4(&inst->SrcReg[0], machine, a);
934 store_vector4(inst, machine, result);
940 fetch_vector4(&inst->SrcReg[0], machine, a);
945 store_vector4(inst, machine, result);
958 fetch_vector1(&inst->SrcReg[0], machine, a);
962 cond = eval_condition(machine, inst);
989 if (eval_condition(machine, inst)) {
996 fetch_vector4(&inst->SrcReg[0], machine, a);
1010 fetch_vector1(&inst->SrcReg[0], machine, a);
1020 store_vector4(inst, machine, result);
1027 fetch_vector4(&inst->SrcReg[0], machine, a);
1045 store_vector4(inst, machine, result);
1056 fetch_vector1(&inst->SrcReg[0], machine, t);
1091 store_vector4(inst, machine, q);
1097 fetch_vector4(&inst->SrcReg[0], machine, a);
1098 fetch_vector4(&inst->SrcReg[1], machine, b);
1099 fetch_vector4(&inst->SrcReg[2], machine, c);
1104 store_vector4(inst, machine, result);
1117 fetch_vector4(&inst->SrcReg[0], machine, a);
1118 fetch_vector4(&inst->SrcReg[1], machine, b);
1119 fetch_vector4(&inst->SrcReg[2], machine, c);
1124 store_vector4(inst, machine, result);
1137 fetch_vector4(&inst->SrcReg[0], machine, a);
1138 fetch_vector4(&inst->SrcReg[1], machine, b);
1143 store_vector4(inst, machine, result);
1154 fetch_vector4(&inst->SrcReg[0], machine, a);
1155 fetch_vector4(&inst->SrcReg[1], machine, b);
1160 store_vector4(inst, machine, result);
1166 fetch_vector4(&inst->SrcReg[0], machine, result);
1167 store_vector4(inst, machine, result);
1177 fetch_vector4(&inst->SrcReg[0], machine, a);
1178 fetch_vector4(&inst->SrcReg[1], machine, b);
1183 store_vector4(inst, machine, result);
1194 fetch_vector1(&inst->SrcReg[0], machine, a);
1199 store_vector4(inst, machine, result);
1205 fetch_vector4(&inst->SrcReg[0], machine, a);
1209 store_vector4(inst, machine, result);
1215 fetch_vector4(&inst->SrcReg[0], machine, a);
1220 store_vector4(inst, machine, result);
1226 fetch_vector4(&inst->SrcReg[0], machine, a);
1231 store_vector4(inst, machine, result);
1239 fetch_vector4ui(&inst->SrcReg[0], machine, a);
1244 store_vector4ui(inst, machine, result);
1251 fetch_vector4(&inst->SrcReg[0], machine, a);
1259 store_vector4(inst, machine, result);
1266 fetch_vector4(&inst->SrcReg[0], machine, a);
1274 store_vector4(inst, machine, result);
1280 fetch_vector4ui(&inst->SrcReg[0], machine, a);
1281 fetch_vector4ui(&inst->SrcReg[1], machine, b);
1286 store_vector4ui(inst, machine, result);
1294 fetch_vector4(&inst->SrcReg[0], machine, a);
1301 store_vector4ui(inst, machine, result);
1308 fetch_vector4(&inst->SrcReg[0], machine, a);
1317 store_vector4ui(inst, machine, result);
1324 fetch_vector4(&inst->SrcReg[0], machine, a);
1337 store_vector4ui(inst, machine, result);
1344 fetch_vector4(&inst->SrcReg[0], machine, a);
1357 store_vector4ui(inst, machine, result);
1363 fetch_vector1(&inst->SrcReg[0], machine, a);
1364 fetch_vector1(&inst->SrcReg[1], machine, b);
1367 store_vector4(inst, machine, result);
1374 fetch_vector1(&inst->SrcReg[0], machine, a);
1404 store_vector4(inst, machine, result);
1411 fetch_vector1(&inst->SrcReg[0], machine, a);
1419 store_vector4(inst, machine, result);
1423 if (eval_condition(machine, inst)) {
1424 if (machine->StackDepth == 0) {
1428 pc = machine->CallStack[--machine->StackDepth] - 1;
1434 fetch_vector4(&inst->SrcReg[0], machine, axis);
1435 fetch_vector4(&inst->SrcReg[1], machine, dir);
1442 store_vector4(inst, machine, result);
1448 fetch_vector1(&inst->SrcReg[0], machine, a);
1451 store_vector4(inst, machine, result);
1460 fetch_vector1(&inst->SrcReg[0], machine, a);
1465 store_vector4(inst, machine, result);
1471 fetch_vector4(&inst->SrcReg[0], machine, a);
1472 fetch_vector4(&inst->SrcReg[1], machine, b);
1477 store_vector4(inst, machine, result);
1489 store_vector4(inst, machine, result);
1495 fetch_vector4(&inst->SrcReg[0], machine, a);
1496 fetch_vector4(&inst->SrcReg[1], machine, b);
1501 store_vector4(inst, machine, result);
1513 fetch_vector4(&inst->SrcReg[0], machine, a);
1514 fetch_vector4(&inst->SrcReg[1], machine, b);
1519 store_vector4(inst, machine, result);
1531 fetch_vector1(&inst->SrcReg[0], machine, a);
1534 store_vector4(inst, machine, result);
1540 fetch_vector4(&inst->SrcReg[0], machine, a);
1541 fetch_vector4(&inst->SrcReg[1], machine, b);
1546 store_vector4(inst, machine, result);
1558 fetch_vector4(&inst->SrcReg[0], machine, a);
1559 fetch_vector4(&inst->SrcReg[1], machine, b);
1564 store_vector4(inst, machine, result);
1576 fetch_vector4(&inst->SrcReg[0], machine, a);
1577 fetch_vector4(&inst->SrcReg[1], machine, b);
1582 store_vector4(inst, machine, result);
1594 fetch_vector4(&inst->SrcReg[0], machine, a);
1599 store_vector4(inst, machine, result);
1605 store_vector4(inst, machine, result);
1611 fetch_vector4(&inst->SrcReg[0], machine, a);
1612 fetch_vector4(&inst->SrcReg[1], machine, b);
1617 store_vector4(inst, machine, result);
1628 const GLfloat *src = get_src_register_pointer(source, machine);
1645 store_vector4(inst, machine, result);
1652 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1662 fetch_texel(ctx, machine, inst, texcoord, 0.0, color);
1670 store_vector4(inst, machine, color);
1678 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1683 fetch_texel(ctx, machine, inst, texcoord, lodBias, color);
1697 store_vector4(inst, machine, color);
1704 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1705 fetch_vector4(&inst->SrcReg[1], machine, dtdx);
1706 fetch_vector4(&inst->SrcReg[2], machine, dtdy);
1707 machine->FetchTexelDeriv(ctx, texcoord, dtdx, dtdy,
1710 store_vector4(inst, machine, color);
1718 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1723 machine->FetchTexelLod(ctx, texcoord, lod,
1724 machine->Samplers[inst->TexSrcUnit], color);
1726 store_vector4(inst, machine, color);
1734 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1745 fetch_texel(ctx, machine, inst, texcoord, 0.0, color);
1747 store_vector4(inst, machine, color);
1757 fetch_vector4(&inst->SrcReg[0], machine, texcoord);
1765 fetch_texel(ctx, machine, inst, texcoord, 0.0, color);
1767 store_vector4(inst, machine, color);
1773 fetch_vector4(&inst->SrcReg[0], machine, a);
1778 store_vector4(inst, machine, result);
1783 const GLuint raw = fetch_vector1ui(&inst->SrcReg[0], machine);
1790 store_vector4(inst, machine, result);
1795 const GLuint raw = fetch_vector1ui(&inst->SrcReg[0], machine);
1802 store_vector4(inst, machine, result);
1807 const GLuint raw = fetch_vector1ui(&inst->SrcReg[0], machine);
1813 store_vector4(inst, machine, result);
1818 const GLuint raw = fetch_vector1ui(&inst->SrcReg[0], machine);
1824 store_vector4(inst, machine, result);
1830 fetch_vector4ui(&inst->SrcReg[0], machine, a);
1831 fetch_vector4ui(&inst->SrcReg[1], machine, b);
1836 store_vector4ui(inst, machine, result);
1842 fetch_vector4(&inst->SrcReg[0], machine, a);
1843 fetch_vector4(&inst->SrcReg[1], machine, b);
1848 store_vector4(inst, machine, result);
1859 fetch_vector4(&inst->SrcReg[0], machine, a);
1860 fetch_vector4(&inst->SrcReg[1], machine, b);
1861 fetch_vector4(&inst->SrcReg[2], machine, c);
1866 machine, result);
1873 fetch_vector4(&inst->SrcReg[0], machine, a);