From: José Fonseca Date: Mon, 24 Aug 2009 10:40:56 +0000 (+0100) Subject: tgsi: Only free temp uregs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=02c523dfbb1b6854eeab9619afe4efbd59a5c8fc;p=mesa.git tgsi: Only free temp uregs. Shorthand. (cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b) --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 63ae2677667..c0a0627e0b2 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_ureg.c +++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.c @@ -340,8 +340,9 @@ out: void ureg_release_temporary( struct ureg_program *ureg, struct ureg_dst tmp ) { - if (tmp.Index < UREG_MAX_TEMP) - ureg->temps_active[tmp.Index/32] &= ~(1 << (tmp.Index % 32)); + if(tmp.File == TGSI_FILE_TEMPORARY) + if (tmp.Index < UREG_MAX_TEMP) + ureg->temps_active[tmp.Index/32] &= ~(1 << (tmp.Index % 32)); }