aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_builder.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-19 16:37:23 -0700
committerEric Anholt <[email protected]>2012-04-13 17:01:20 -0700
commit8bb0091e6838aeee2a5819850c334fde71b5a439 (patch)
tree2aa35bf31aff1f780a002efaaf3a7b4c4f9020af /src/glsl/ir_builder.h
parentd32780d5041a6d241834fe565739104f86300425 (diff)
glsl: Add a helper for generating temporary variables in ir_builder.
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/ir_builder.h')
-rw-r--r--src/glsl/ir_builder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_builder.h b/src/glsl/ir_builder.h
index af9d1600f68..0ebcbab95c2 100644
--- a/src/glsl/ir_builder.h
+++ b/src/glsl/ir_builder.h
@@ -74,6 +74,7 @@ public:
class ir_factory {
public:
void emit(ir_instruction *ir);
+ ir_variable *make_temp(const glsl_type *type, const char *name);
exec_list *instructions;
void *mem_ctx;