From: Brian Date: Fri, 15 Dec 2006 22:37:32 +0000 (-0700) Subject: added assertion to catch use of too many temporaries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f167d0e7d588ab65067ab2e7499664ebc5ab02ec;p=mesa.git added assertion to catch use of too many temporaries --- 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: