mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 15:10:31 +01:00
tgsi: Only free temp uregs.
Shorthand. (cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
This commit is contained in:
parent
acc7da9035
commit
02c523dfbb
1 changed files with 3 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue