r300g: fix r300g cause GPU hang issue.

why there are two input position semantic tags is that ureg doesn't
set vs input semantic due to commit: 6d8dbd3d1e

so use vs input index instead of semantic name.
This commit is contained in:
Cooper Yuan 2009-09-28 17:55:38 +08:00
parent 70c44073ad
commit 99e1745af9
1 changed files with 2 additions and 3 deletions

View File

@ -50,12 +50,11 @@ static void r300_vs_tab_routes(struct r300_context* r300,
assert(info->num_inputs <= 16);
if (!r300screen->caps->has_tcl)
if (!r300screen->caps->has_tcl || !r300->rs_state->enable_vte)
{
for (i = 0; i < info->num_inputs; i++) {
switch (info->input_semantic_name[i]) {
switch (r300->vs->code.inputs[i]) {
case TGSI_SEMANTIC_POSITION:
assert(pos == FALSE);
pos = TRUE;
tab[i] = 0;
break;