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()
227 const struct gl_program_machine *machine, in fetch_vector4_deriv() argument
231 source->Index < (GLint) machine->NumDeriv) { in fetch_vector4_deriv()
232 const GLint col = machine->CurElement; in fetch_vector4_deriv()
233 const GLfloat w = machine->Attribs[VARYING_SLOT_POS][col][3]; in fetch_vector4_deriv()
238 deriv[0] = machine->DerivX[source->Index][0] * invQ; in fetch_vector4_deriv()
239 deriv[1] = machine->DerivX[source->Index][1] * invQ; in fetch_vector4_deriv()
240 deriv[2] = machine->DerivX[source->Index][2] * invQ; in fetch_vector4_deriv()
241 deriv[3] = machine->DerivX[source->Index][3] * invQ; in fetch_vector4_deriv()
244 deriv[0] = machine->DerivY[source->Index][0] * invQ; in fetch_vector4_deriv()
245 deriv[1] = machine->DerivY[source->Index][1] * invQ; in fetch_vector4_deriv()
246 deriv[2] = machine->DerivY[source->Index][2] * invQ; in fetch_vector4_deriv()
247 deriv[3] = machine->DerivY[source->Index][3] * invQ; in fetch_vector4_deriv()
274 const struct gl_program_machine *machine, GLfloat result[4]) in fetch_vector1() argument
276 const GLfloat *src = get_src_register_pointer(source, machine); in fetch_vector1()
291 const struct gl_program_machine *machine, in fetch_texel() argument
296 const GLuint unit = machine->Samplers[inst->TexSrcUnit]; in fetch_texel()
300 if (machine->NumDeriv > 0 && in fetch_texel()
305 machine->FetchTexelDeriv(ctx, texcoord, in fetch_texel()
306 machine->DerivX[attr], in fetch_texel()
307 machine->DerivY[attr], in fetch_texel()
311 machine->FetchTexelLod(ctx, texcoord, lodBias, unit, color); in fetch_texel()
322 struct gl_program_machine *machine, const GLfloat value[4]) in store_vector4() argument
328 GLfloat *dst = get_dst_register_pointer(dstReg, machine); in store_vector4()
369 * \param machine machine state (must be initialized)
375 struct gl_program_machine *machine) in _mesa_execute_program() argument
381 machine->CurProgram = program; in _mesa_execute_program()
388 machine->EnvParams = ctx->VertexProgram.Parameters; in _mesa_execute_program()
391 machine->EnvParams = ctx->FragmentProgram.Parameters; in _mesa_execute_program()
405 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
410 store_vector4(inst, machine, result); in _mesa_execute_program()
416 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
417 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
422 store_vector4(inst, machine, result); in _mesa_execute_program()
433 fetch_vector4(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
434 machine->AddressReg[0][0] = IFLOOR(t[0]); in _mesa_execute_program()
436 printf("ARL %d\n", machine->AddressReg[0][0]); in _mesa_execute_program()
471 if (machine->StackDepth >= MAX_PROGRAM_CALL_DEPTH) { in _mesa_execute_program()
474 machine->CallStack[machine->StackDepth++] = pc + 1; /* next inst */ in _mesa_execute_program()
481 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
482 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
483 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
488 store_vector4(inst, machine, result); in _mesa_execute_program()
501 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
504 store_vector4(inst, machine, result); in _mesa_execute_program()
510 fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine, in _mesa_execute_program()
512 store_vector4(inst, machine, result); in _mesa_execute_program()
518 fetch_vector4_deriv(ctx, &inst->SrcReg[0], machine, in _mesa_execute_program()
520 store_vector4(inst, machine, result); in _mesa_execute_program()
526 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
527 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
529 store_vector4(inst, machine, result); in _mesa_execute_program()
539 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
540 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
542 store_vector4(inst, machine, result); in _mesa_execute_program()
552 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
553 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
555 store_vector4(inst, machine, result); in _mesa_execute_program()
566 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
567 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
569 store_vector4(inst, machine, result); in _mesa_execute_program()
575 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
576 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
581 store_vector4(inst, machine, result); in _mesa_execute_program()
587 fetch_vector1(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
607 store_vector4( inst, machine, q ); in _mesa_execute_program()
613 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
620 store_vector4(inst, machine, result); in _mesa_execute_program()
626 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
631 store_vector4(inst, machine, result); in _mesa_execute_program()
637 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
642 store_vector4(inst, machine, result); in _mesa_execute_program()
654 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
683 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
697 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
707 store_vector4(inst, machine, result); in _mesa_execute_program()
714 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
732 store_vector4(inst, machine, result); in _mesa_execute_program()
743 fetch_vector1(&inst->SrcReg[0], machine, t); in _mesa_execute_program()
770 store_vector4(inst, machine, q); in _mesa_execute_program()
776 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
777 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
778 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
783 store_vector4(inst, machine, result); in _mesa_execute_program()
796 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
797 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
798 fetch_vector4(&inst->SrcReg[2], machine, c); in _mesa_execute_program()
803 store_vector4(inst, machine, result); in _mesa_execute_program()
816 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
817 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
822 store_vector4(inst, machine, result); in _mesa_execute_program()
833 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
834 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
839 store_vector4(inst, machine, result); in _mesa_execute_program()
845 fetch_vector4(&inst->SrcReg[0], machine, result); in _mesa_execute_program()
846 store_vector4(inst, machine, result); in _mesa_execute_program()
856 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
857 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
862 store_vector4(inst, machine, result); in _mesa_execute_program()
873 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
878 store_vector4(inst, machine, result); in _mesa_execute_program()
884 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
888 store_vector4(inst, machine, result); in _mesa_execute_program()
894 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
899 store_vector4(inst, machine, result); in _mesa_execute_program()
905 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
910 store_vector4(inst, machine, result); in _mesa_execute_program()
918 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
919 fetch_vector1(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
922 store_vector4(inst, machine, result); in _mesa_execute_program()
929 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
937 store_vector4(inst, machine, result); in _mesa_execute_program()
941 if (machine->StackDepth == 0) { in _mesa_execute_program()
945 pc = machine->CallStack[--machine->StackDepth] - 1; in _mesa_execute_program()
950 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
953 store_vector4(inst, machine, result); in _mesa_execute_program()
962 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
967 store_vector4(inst, machine, result); in _mesa_execute_program()
973 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
974 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
979 store_vector4(inst, machine, result); in _mesa_execute_program()
991 fetch_vector1(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
994 store_vector4(inst, machine, result); in _mesa_execute_program()
1000 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1001 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1006 store_vector4(inst, machine, result); in _mesa_execute_program()
1018 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1023 store_vector4(inst, machine, result); in _mesa_execute_program()
1029 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1030 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1035 store_vector4(inst, machine, result); in _mesa_execute_program()
1046 const GLfloat *src = get_src_register_pointer(source, machine); in _mesa_execute_program()
1062 store_vector4(inst, machine, result); in _mesa_execute_program()
1069 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1079 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1087 store_vector4(inst, machine, color); in _mesa_execute_program()
1095 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1100 fetch_texel(ctx, machine, inst, texcoord, lodBias, color); in _mesa_execute_program()
1114 store_vector4(inst, machine, color); in _mesa_execute_program()
1121 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1122 fetch_vector4(&inst->SrcReg[1], machine, dtdx); in _mesa_execute_program()
1123 fetch_vector4(&inst->SrcReg[2], machine, dtdy); in _mesa_execute_program()
1124 machine->FetchTexelDeriv(ctx, texcoord, dtdx, dtdy, in _mesa_execute_program()
1127 store_vector4(inst, machine, color); in _mesa_execute_program()
1135 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1140 machine->FetchTexelLod(ctx, texcoord, lod, in _mesa_execute_program()
1141 machine->Samplers[inst->TexSrcUnit], color); in _mesa_execute_program()
1143 store_vector4(inst, machine, color); in _mesa_execute_program()
1151 fetch_vector4(&inst->SrcReg[0], machine, texcoord); in _mesa_execute_program()
1162 fetch_texel(ctx, machine, inst, texcoord, 0.0, color); in _mesa_execute_program()
1164 store_vector4(inst, machine, color); in _mesa_execute_program()
1170 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1175 store_vector4(inst, machine, result); in _mesa_execute_program()
1181 fetch_vector4(&inst->SrcReg[0], machine, a); in _mesa_execute_program()
1182 fetch_vector4(&inst->SrcReg[1], machine, b); in _mesa_execute_program()
1187 store_vector4(inst, machine, result); in _mesa_execute_program()