summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/tgsi/tgsi_ureg.h
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2012-03-26 17:55:30 +0200
committerFrancisco Jerez <[email protected]>2012-05-11 12:39:42 +0200
commitb52e374ad3b568fc1eb35df80e90a39b4cb99289 (patch)
treefa48dd0e03093a8125e1d840a0a11a21a61db36f /src/gallium/auxiliary/tgsi/tgsi_ureg.h
parent1b8aecc797b72a84c4a571639e952fe1f84e0fa5 (diff)
gallium/tgsi/ureg: Support local temporary emission.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_ureg.h')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_ureg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.h b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
index b1297a25a94..e6131f25aae 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_ureg.h
+++ b/src/gallium/auxiliary/tgsi/tgsi_ureg.h
@@ -272,6 +272,14 @@ ureg_DECL_constant( struct ureg_program *,
struct ureg_dst
ureg_DECL_temporary( struct ureg_program * );
+/**
+ * Emit a temporary with the LOCAL declaration flag set. For use when
+ * the register value is not required to be preserved across
+ * subroutine boundaries.
+ */
+struct ureg_dst
+ureg_DECL_local_temporary( struct ureg_program * );
+
void
ureg_release_temporary( struct ureg_program *ureg,
struct ureg_dst tmp );