diff options
author | José Fonseca <[email protected]> | 2009-08-24 11:40:56 +0100 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-08-24 12:11:24 +0100 |
commit | 02c523dfbb1b6854eeab9619afe4efbd59a5c8fc (patch) | |
tree | 8dd370cd8815ef147078659087c87cde538401e4 /src/gallium/auxiliary/tgsi/tgsi_ureg.c | |
parent | acc7da90356a96efb93bb3a6a53e0b5f67ce993a (diff) |
tgsi: Only free temp uregs.
Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.c')
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_ureg.c | 5 |
1 files changed, 3 insertions, 2 deletions
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)); } |