aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-03-03 19:15:24 +0000
committerJosé Fonseca <[email protected]>2011-03-03 19:23:04 +0000
commit9f3c59a35093c61fb11aab6d3ed5cb45f2b8c2a7 (patch)
tree3af29546b8b81d3a31dba2337c89a252e9b4cc2e /src
parent09e1bebc25140eecafa0c3eacefcf63010ce4f10 (diff)
tgsi: Update assert.
Elements(mach->Inputs) is wrong now that mach->Inputs is dynamically allocated.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index 6576c74fbde..9cf74a838fe 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -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;