Mesa (master): tgsi: Only free temp uregs.
Keith Whitwell
keithw at kemper.freedesktop.org
Mon Aug 24 11:12:23 UTC 2009
Module: Mesa
Branch: master
Commit: 02c523dfbb1b6854eeab9619afe4efbd59a5c8fc
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=02c523dfbb1b6854eeab9619afe4efbd59a5c8fc
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Aug 24 11:40:56 2009 +0100
tgsi: Only free temp uregs.
Shorthand.
(cherry picked from commit de911220bbbe74cff0c79b260456ff36122b7b5b)
---
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 63ae267..c0a0627 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));
}
More information about the mesa-commit
mailing list