if (evs->machine->Tokens != shader->state.tokens) {
tgsi_exec_machine_bind_shader(evs->machine,
shader->state.tokens,
- draw->vs.num_samplers,
- draw->vs.samplers);
+ draw->vs.tgsi.sampler);
}
}
output[slot][2] = CLAMP(machine->Outputs[slot].xyzw[2].f[j], 0.0f, 1.0f);
output[slot][3] = CLAMP(machine->Outputs[slot].xyzw[3].f[j], 0.0f, 1.0f);
}
- else
+ else if (name == TGSI_SEMANTIC_FOG) {
+ output[slot][0] = machine->Outputs[slot].xyzw[0].f[j];
+ output[slot][1] = 0;
+ output[slot][2] = 0;
+ output[slot][3] = 1;
+ } else
{
output[slot][0] = machine->Outputs[slot].xyzw[0].f[j];
output[slot][1] = machine->Outputs[slot].xyzw[1].f[j];
vs->base.run_linear = vs_exec_run_linear;
vs->base.delete = vs_exec_delete;
vs->base.create_variant = draw_vs_create_variant_generic;
- vs->machine = draw->vs.machine;
+ vs->machine = draw->vs.tgsi.machine;
return &vs->base;
}