summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-05 12:10:31 -0700
committerEric Anholt <[email protected]>2010-08-05 12:56:03 -0700
commit9f82806c7b5109553cf806a5652e6b6198665094 (patch)
treed09c0725d013f3ede715c0b02d007af6f761b727 /src/glsl/ir.h
parent3bd7e70bf7c4a9a52b425284c9f23689f00de93c (diff)
glsl2: Don't dead-code eliminate a call where the return value is unused.
This showed up since the disabling of inlining at compile time, which I apparently didn't regenerate piglit summary for. Fixes: glsl-deadcode-call.
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index f58602515ef..ef8339ce199 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -1389,4 +1389,7 @@ extern void
import_prototypes(const exec_list *source, exec_list *dest,
class glsl_symbol_table *symbols, void *mem_ctx);
+extern bool
+ir_has_call(ir_instruction *ir);
+
#endif /* IR_H */