Lines Matching full:machine
74 struct gl_program_machine machine;
224 * Initialize virtual machine state prior to executing vertex program.
227 init_machine(struct gl_context *ctx, struct gl_program_machine *machine,
231 memcpy(machine->VertAttribs, ctx->Current.Attrib,
238 ASSIGN_4V(machine->Outputs[i], 0.0F, 0.0F, 0.0F, 1.0F);
242 ASSIGN_4V(machine->Temporaries[i], 0.0F, 0.0F, 0.0F, 0.0F);
245 ASSIGN_4V(machine->AddressReg[i], 0, 0, 0, 0);
249 machine->NumDeriv = 0;
252 machine->CondCodes[0] = COND_EQ;
253 machine->CondCodes[1] = COND_EQ;
254 machine->CondCodes[2] = COND_EQ;
255 machine->CondCodes[3] = COND_EQ;
258 machine->StackDepth = 0;
260 machine->FetchTexelLod = vp_fetch_texel;
261 machine->FetchTexelDeriv = NULL; /* not used by vertex programs */
263 machine->Samplers = ctx->VertexProgram._Current->Base.SamplerUnits;
265 machine->SystemValues[SYSTEM_VALUE_INSTANCE_ID][0] = (GLfloat) instID;
317 struct gl_program_machine *machine = &store->machine;
356 init_machine(ctx, machine, tnl->CurInstance);
389 COPY_CLEAN_4V(machine->VertAttribs[attr], size, data);
394 _mesa_execute_program(ctx, &program->Base, machine);
400 check_float(machine->Outputs[attr][0]);
401 check_float(machine->Outputs[attr][1]);
402 check_float(machine->Outputs[attr][2]);
403 check_float(machine->Outputs[attr][3]);
405 COPY_4V(store->results[attr].data[i], machine->Outputs[attr]);
415 ASSERT(machine->Outputs[0][3] != 0.0F);
419 machine->Outputs[0][0],
420 machine->Outputs[0][1],
421 machine->Outputs[0][2],
422 machine->Outputs[0][3]);