tgsi: Only free temp uregs.

Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
This commit is contained in:
José Fonseca 2009-08-24 11:40:56 +01:00 committed by Keith Whitwell
parent acc7da9035
commit 02c523dfbb
1 changed files with 3 additions and 2 deletions

View File

@ -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));
}