summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-10-30 13:28:44 -0700
committerEric Anholt <eric@anholt.net>2009-10-30 13:28:44 -0700
commitcb132406ded760a622513cd1ab86bf83bb945671 (patch)
tree541733bdabbdf6cfdfc0394b668ff8e5ea58f6af /src
parent2c30ee9bd69ed606b984c051748a7cdb34905eeb (diff)
i965: Add an index assert on get_fp_inst array like other compiler arrays.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm_fp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_fp.c b/src/mesa/drivers/dri/i965/brw_wm_fp.c
index 53fdd06f42..0e86d75dea 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_fp.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_fp.c
@@ -181,6 +181,7 @@ static void release_temp( struct brw_wm_compile *c, struct prog_dst_register tem
static struct prog_instruction *get_fp_inst(struct brw_wm_compile *c)
{
+ assert(c->nr_fp_insns < BRW_WM_MAX_INSN);
return &c->prog_instructions[c->nr_fp_insns++];
}