diff options
author | Eric Engestrom <[email protected]> | 2017-09-12 15:58:28 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-09-13 11:22:27 +0100 |
commit | 2f6ffab1ce740fa39a3472f59ba95d0d50cfd151 (patch) | |
tree | 110cdf00c7f12e515a3a8d2976283bf4bee7a39f /src/compiler/glsl/ir_validate.cpp | |
parent | c0b81af0dcde4536dcf57ce24db3e0aa7187be4e (diff) |
glsl: compile unused function out
The function is only called from one place, which is hidden behind
the same `#ifdef DEBUG`.
Fixes: ca73c3358c91434e68ab "glsl: Mark functions static"
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_validate.cpp')
-rw-r--r-- | src/compiler/glsl/ir_validate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_validate.cpp b/src/compiler/glsl/ir_validate.cpp index becce771be2..50d611500c5 100644 --- a/src/compiler/glsl/ir_validate.cpp +++ b/src/compiler/glsl/ir_validate.cpp @@ -1043,6 +1043,7 @@ ir_validate::validate_ir(ir_instruction *ir, void *data) _mesa_set_add(ir_set, ir); } +#ifdef DEBUG static void check_node_type(ir_instruction *ir, void *data) { @@ -1056,6 +1057,7 @@ check_node_type(ir_instruction *ir, void *data) if (value != NULL) assert(value->type != glsl_type::error_type); } +#endif void validate_ir_tree(exec_list *instructions) |