r300-gallium: Slightly hacky fix for glxgears-style TCL.

This commit is contained in:
Corbin Simpson 2009-06-01 12:04:29 -07:00
parent bc302b2a33
commit 1fa023ae48

View file

@ -163,6 +163,13 @@ static void r300_vs_tab_routes(struct r300_context* r300,
vinfo->hwfmt[3] |= (4 << (3 * i));
}
/* Handle the case where the vertex shader will be generating some of
* the attribs based on its inputs. */
if (r300screen->caps->has_tcl &&
info->num_inputs < info->num_outputs) {
vinfo->num_attribs = info->num_inputs;
}
draw_compute_vertex_size(vinfo);
}