{
const float *in = (const float *)(src[2] + elts[i] * pitch[2]);
- float *out = &machine->Inputs[1].xyzw[0].f[i];
+ float *out = &machine->Inputs[2].xyzw[0].f[i];
out[0] = in[0];
out[4] = in[1];
out[8] = 0.0f;
case 3:
if (draw->vertex_element[0].src_format == PIPE_FORMAT_R32G32B32_FLOAT &&
draw->vertex_element[1].src_format == PIPE_FORMAT_R32G32B32_FLOAT &&
- draw->vertex_element[1].src_format == PIPE_FORMAT_R32G32_FLOAT)
+ draw->vertex_element[2].src_format == PIPE_FORMAT_R32G32_FLOAT)
draw->vertex_fetch.fetch_func = fetch_xyz_rgb_st;
break;
default: