summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_fs.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-02-09 01:26:11 -0800
committerVinson Lee <[email protected]>2010-02-09 01:26:11 -0800
commit70f8aaa0c30c640d0cce7faea9402b4e53bbfff0 (patch)
treecbf3ac8367e320d04934dfce099696c812d9a28d /src/gallium/drivers/r300/r300_fs.c
parent43f8a82a76599c10fa33ef35b6500924768de90c (diff)
r300g: Fix off-by-one errors in array bounds assertions.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.c')
-rw-r--r--src/gallium/drivers/r300/r300_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.c b/src/gallium/drivers/r300/r300_fs.c
index 39bcdc8fe60..75a05498eb3 100644
--- a/src/gallium/drivers/r300/r300_fs.c
+++ b/src/gallium/drivers/r300/r300_fs.c
@@ -49,12 +49,12 @@ void r300_shader_read_fs_inputs(struct tgsi_shader_info* info,
switch (info->input_semantic_name[i]) {
case TGSI_SEMANTIC_COLOR:
- assert(index <= ATTR_COLOR_COUNT);
+ assert(index < ATTR_COLOR_COUNT);
fs_inputs->color[index] = i;
break;
case TGSI_SEMANTIC_GENERIC:
- assert(index <= ATTR_GENERIC_COUNT);
+ assert(index < ATTR_GENERIC_COUNT);
fs_inputs->generic[index] = i;
break;