diff options
author | Brian <brian@yutani.localnet.net> | 2006-12-15 15:37:32 -0700 |
---|---|---|
committer | Brian <brian@yutani.localnet.net> | 2006-12-15 15:37:32 -0700 |
commit | f167d0e7d588ab65067ab2e7499664ebc5ab02ec (patch) | |
tree | 558e8fb9e00a6e39d3a0403cf2c9bd3afb60425c | |
parent | fa8059a89c91405615c0e0f73b2c469ccb27fb91 (diff) | |
download | external_mesa3d-f167d0e7d588ab65067ab2e7499664ebc5ab02ec.zip external_mesa3d-f167d0e7d588ab65067ab2e7499664ebc5ab02ec.tar.gz external_mesa3d-f167d0e7d588ab65067ab2e7499664ebc5ab02ec.tar.bz2 |
added assertion to catch use of too many temporaries
-rw-r--r-- | src/mesa/tnl/t_vb_arbprogram.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c index c59d98e..1f17a7e 100644 --- a/src/mesa/tnl/t_vb_arbprogram.c +++ b/src/mesa/tnl/t_vb_arbprogram.c @@ -832,6 +832,7 @@ static struct reg cvp_load_reg( struct compilation *cp, switch (file) { case PROGRAM_TEMPORARY: + assert(REG_TMP0 + index <= REG_TMP11); return cvp_make_reg(FILE_REG, REG_TMP0 + index); case PROGRAM_INPUT: |