Home | History | Annotate | Download | only in draw

Lines Matching refs:machine

49    struct tgsi_exec_machine *machine;
72 if (evs->machine->Tokens != shader->state.tokens) {
73 tgsi_exec_machine_bind_shader(evs->machine,
99 struct tgsi_exec_machine *machine = evs->machine;
105 tgsi_exec_set_constant_buffers(machine, PIPE_MAX_CONSTANT_BUFFERS,
109 unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_INSTANCEID];
110 assert(i < ARRAY_SIZE(machine->SystemValue));
112 machine->SystemValue[i].xyzw[0].i[j] = shader->draw->instance_id;
133 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID];
134 assert(vid < ARRAY_SIZE(machine->SystemValue));
135 machine->SystemValue[vid].xyzw[0].i[j] = i + j;
139 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_BASEVERTEX];
140 assert(vid < ARRAY_SIZE(machine->SystemValue));
141 machine->SystemValue[vid].xyzw[0].i[j] = 0;
145 unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID_NOBASE];
146 assert(vid < ARRAY_SIZE(machine->SystemValue));
147 machine->SystemValue[vid].xyzw[0].i[j] = i + j;
157 machine->Inputs[slot].xyzw[0].f[j] = input[slot][0];
158 machine->Inputs[slot].xyzw[1].f[j] = input[slot][1];
159 machine->Inputs[slot].xyzw[2].f[j] = input[slot][2];
160 machine->Inputs[slot].xyzw[3].f[j] = input[slot][3];
166 machine->NonHelperMask = (1 << max_vertices) - 1;
168 tgsi_exec_machine_run(machine, 0);
177 output[slot][0] = CLAMP(machine->Outputs[slot].xyzw[0].f[j], 0.0f, 1.0f);
178 output[slot][1] = CLAMP(machine->Outputs[slot].xyzw[1].f[j], 0.0f, 1.0f);
179 output[slot][2] = CLAMP(machine->Outputs[slot].xyzw[2].f[j], 0.0f, 1.0f);
180 output[slot][3] = CLAMP(machine->Outputs[slot].xyzw[3].f[j], 0.0f, 1.0f);
182 output[slot][0] = machine->Outputs[slot].xyzw[0].f[j];
183 output[slot][1] = machine->Outputs[slot].xyzw[1].f[j];
184 output[slot][2] = machine->Outputs[slot].xyzw[2].f[j];
185 output[slot][3] = machine->Outputs[slot].xyzw[3].f[j];
239 vs->machine = draw->vs.tgsi.machine;