tgsi: Update assert.

Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically
allocated.
This commit is contained in:
José Fonseca
2011-03-03 19:15:24 +00:00
parent 09e1bebc25
commit 9f3c59a350
+1 -1
View File
@@ -1084,7 +1084,7 @@ fetch_src_file_channel(const struct tgsi_exec_machine *mach,
}*/
int pos = index2D->i[i] * TGSI_EXEC_MAX_INPUT_ATTRIBS + index->i[i];
assert(pos >= 0);
assert(pos < Elements(mach->Inputs));
assert(pos < TGSI_MAX_PRIM_VERTICES * PIPE_MAX_ATTRIBS);
chan->u[i] = mach->Inputs[pos].xyzw[swizzle].u[i];
}
break;