summaryrefslogtreecommitdiffstats
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian <[email protected]>2006-12-15 15:37:32 -0700
committerBrian <[email protected]>2006-12-15 15:37:32 -0700
commitf167d0e7d588ab65067ab2e7499664ebc5ab02ec (patch)
tree558e8fb9e00a6e39d3a0403cf2c9bd3afb60425c /src/mesa/tnl
parentfa8059a89c91405615c0e0f73b2c469ccb27fb91 (diff)
added assertion to catch use of too many temporaries
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.c1
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 c59d98e118c..1f17a7e389d 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: