diff options
author | Eric Anholt <[email protected]> | 2009-10-30 13:28:44 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-10-30 13:28:44 -0700 |
commit | cb132406ded760a622513cd1ab86bf83bb945671 (patch) | |
tree | 541733bdabbdf6cfdfc0394b668ff8e5ea58f6af | |
parent | 2c30ee9bd69ed606b984c051748a7cdb34905eeb (diff) |
i965: Add an index assert on get_fp_inst array like other compiler arrays.
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_fp.c | 1 |
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 53fdd06f428..0e86d75deac 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++]; } |