Lines Matching full:machine

80                          const struct gl_program_machine *machine)  in get_src_register_pointer()  argument
82 const struct gl_program *prog = machine->CurProgram; in get_src_register_pointer()
87 reg += machine->AddressReg[0][0]; in get_src_register_pointer()
97 return machine->Temporaries[reg]; in get_src_register_pointer()
103 return machine->VertAttribs[reg]; in get_src_register_pointer()
108 return machine->Attribs[reg][machine->CurElement]; in get_src_register_pointer()
114 return machine->Outputs[reg]; in get_src_register_pointer()
126 assert(reg < (GLint) ARRAY_SIZE(machine->SystemValues)); in get_src_register_pointer()
127 return machine->SystemValues[reg]; in get_src_register_pointer()
144 struct gl_program_machine *machine) in get_dst_register_pointer() argument
151 reg += machine->AddressReg[0][0]; in get_dst_register_pointer()
161 return machine->Temporaries[reg]; in get_dst_register_pointer()
166 return machine->Outputs[reg]; in get_dst_register_pointer()
184 const struct gl_program_machine *machine, GLfloat result[4]) in fetch_vector4() argument
186 const GLfloat *src = get_src_register_pointer(source, machine); in fetch_vector4()
226 const struct gl_program_machine *machine, in fetch_vector4_deriv() argument
230 source->Index < (GLint) machine->NumDeriv) { in fetch_vector4_deriv()
231 const GLint col = machine->CurElement; in fetch_vector4_deriv()
232 const GLfloat w = machine->Attribs[VARYING_SLOT_POS][col][3]; in fetch_vector4_deriv()
237 deriv[0] = machine->DerivX[source->Index][0] * invQ; in fetch_vector4_deriv()
238 deriv[1] = machine->DerivX[source->Index][1] * invQ; in fetch_vector4_deriv()
239 deriv[2] = machine->DerivX[source->Index][2] * invQ; in fetch_vector4_deriv()
240 deriv[3] = machine->DerivX[source->Index][3] * invQ; in fetch_vector4_deriv()
243 deriv[0] = machine->DerivY[source->Index][0] * invQ; in fetch_vector4_deriv()
244 deriv[1] = machine->DerivY[source->Index][1] * invQ; in fetch_vector4_deriv()
245 deriv[2] = machine->DerivY[source->Index][2] * invQ; in fetch_vector4_deriv()
246 deriv[3] = machine->DerivY[source->Index][3] * invQ; in fetch_vector4_deriv()
273 const struct gl_program_machine *machine, GLfloat result[4]) in fetch_vector1() argument
275 const GLfloat *src = get_src_register_pointer(source, machine); in fetch_vector1()
290 const struct gl_program_machine *machine, in fetch_texel() argument
295 const GLuint unit = machine->Samplers[inst->TexSrcUnit]; in fetch_texel()
299 if (machine->NumDeriv > 0 && in fetch_texel()
304 machine->FetchTexelDeriv(ctx, texcoord, in fetch_texel()
305 machine->DerivX[attr], in fetch_texel()
306 machine->DerivY[attr], in fetch_texel()
310 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color); in fetch_texel()
321 struct gl_program_machine *machine, const GLfloat value[4]) in store_vector4() argument
327 GLfloat *dst = get_dst_register_pointer(dstReg, machine); in store_vector4()
368 * \param machine machine state (must be initialized)
374 struct gl_program_machine *machine) in _mesa_execute_program() argument
380 machine->CurProgram = program; in _mesa_execute_program()
387 machine->EnvParams = ctx->VertexProgram.Parameters; in _mesa_execute_program()
390 machine->EnvParams = ctx->FragmentProgram.Parameters; in _mesa_execute_program()
404 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
409 store_vector4(inst, machine, result); in _mesa_execute_program()
415 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
416 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
421 store_vector4(inst, machine, result); in _mesa_execute_program()
432 fetch_vector4(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
433 machine->AddressReg[0][0] = IFLOOR(t[0]); in _mesa_execute_program()
435 printf("ARL %d\n", machine->AddressReg[0][0]); in _mesa_execute_program()
470 if (machine->StackDepth >= MAX_PROGRAM_CALL_DEPTH) { in _mesa_execute_program()
473 machine->CallStack[machine->StackDepth++] = pc + 1; /* next inst */ in _mesa_execute_program()
480 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
481 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
482 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
487 store_vector4(inst, machine, result); in _mesa_execute_program()
500 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
503 store_vector4(inst, machine, result); in _mesa_execute_program()
509 fetch_vector4_deriv(&inst->SrcReg[0], machine, 'X', result); in _mesa_execute_program()
510 store_vector4(inst, machine, result); in _mesa_execute_program()
516 fetch_vector4_deriv(&inst->SrcReg[0], machine, 'Y', result); in _mesa_execute_program()
517 store_vector4(inst, machine, result); in _mesa_execute_program()
523 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
524 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
526 store_vector4(inst, machine, result); in _mesa_execute_program()
536 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
537 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
539 store_vector4(inst, machine, result); in _mesa_execute_program()
549 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
550 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
552 store_vector4(inst, machine, result); in _mesa_execute_program()
563 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
564 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
566 store_vector4(inst, machine, result); in _mesa_execute_program()
572 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
573 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
578 store_vector4(inst, machine, result); in _mesa_execute_program()
584 fetch_vector1(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
604 store_vector4( inst, machine, q ); in _mesa_execute_program()
610 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
617 store_vector4(inst, machine, result); in _mesa_execute_program()
623 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
628 store_vector4(inst, machine, result); in _mesa_execute_program()
634 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
639 store_vector4(inst, machine, result); in _mesa_execute_program()
651 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
680 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
694 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
704 store_vector4(inst, machine, result); in _mesa_execute_program()
711 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
729 store_vector4(inst, machine, result); in _mesa_execute_program()
740 fetch_vector1(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
767 store_vector4(inst, machine, q); in _mesa_execute_program()
773 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
774 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
775 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
780 store_vector4(inst, machine, result); in _mesa_execute_program()
793 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
794 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
795 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
800 store_vector4(inst, machine, result); in _mesa_execute_program()
813 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
814 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
819 store_vector4(inst, machine, result); in _mesa_execute_program()
830 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
831 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
836 store_vector4(inst, machine, result); in _mesa_execute_program()
842 fetch_vector4(&inst->SrcReg[0], machine, result); in _mesa_execute_program()
843 store_vector4(inst, machine, result); in _mesa_execute_program()
853 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
854 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
859 store_vector4(inst, machine, result); in _mesa_execute_program()
870 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
875 store_vector4(inst, machine, result); in _mesa_execute_program()
881 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
885 store_vector4(inst, machine, result); in _mesa_execute_program()
891 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
896 store_vector4(inst, machine, result); in _mesa_execute_program()
902 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
907 store_vector4(inst, machine, result); in _mesa_execute_program()
915 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
916 fetch_vector1(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
919 store_vector4(inst, machine, result); in _mesa_execute_program()
926 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
934 store_vector4(inst, machine, result); in _mesa_execute_program()
938 if (machine->StackDepth == 0) { in _mesa_execute_program()
942 pc = machine->CallStack[--machine->StackDepth] - 1; in _mesa_execute_program()
947 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
950 store_vector4(inst, machine, result); in _mesa_execute_program()
959 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
964 store_vector4(inst, machine, result); in _mesa_execute_program()
970 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
971 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
976 store_vector4(inst, machine, result); in _mesa_execute_program()
988 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
991 store_vector4(inst, machine, result); in _mesa_execute_program()
997 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
998 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1003 store_vector4(inst, machine, result); in _mesa_execute_program()
1015 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1020 store_vector4(inst, machine, result); in _mesa_execute_program()
1026 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1027 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1032 store_vector4(inst, machine, result); in _mesa_execute_program()
1043 const GLfloat *src = get_src_register_pointer(source, machine); in _mesa_execute_program()
1059 store_vector4(inst, machine, result); in _mesa_execute_program()
1066 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1076 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1084 store_vector4(inst, machine, color); in _mesa_execute_program()
1092 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1097 fetch_texel(ctx, machine, inst, texcoord, lodBias, color); in _mesa_execute_program()
1111 store_vector4(inst, machine, color); in _mesa_execute_program()
1118 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1119 fetch_vector4(&inst->SrcReg[1], machine, dtdx); in _mesa_execute_program()
1120 fetch_vector4(&inst->SrcReg[2], machine, dtdy); in _mesa_execute_program()
1121 machine->FetchTexelDeriv(ctx, texcoord, dtdx, dtdy, in _mesa_execute_program()
1124 store_vector4(inst, machine, color); in _mesa_execute_program()
1132 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1137 machine->FetchTexelLod(ctx, texcoord, lod, in _mesa_execute_program()
1138 machine->Samplers[inst->TexSrcUnit], color); in _mesa_execute_program()
1140 store_vector4(inst, machine, color); in _mesa_execute_program()
1148 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1159 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1161 store_vector4(inst, machine, color); in _mesa_execute_program()
1167 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1172 store_vector4(inst, machine, result); in _mesa_execute_program()
1178 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1179 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1184 store_vector4(inst, machine, result); in _mesa_execute_program()