From 02c523dfbb1b6854eeab9619afe4efbd59a5c8fc Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 24 Aug 2009 11:40:56 +0100 Subject: tgsi: Only free temp uregs. Shorthand. (cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b) --- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gallium/auxiliary') 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)); } -- cgit v1.2.3