mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
glsl: compile unused function out
The function is only called from one place, which is hidden behind
the same `#ifdef DEBUG`.
Fixes: ca73c3358c "glsl: Mark functions static"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
c0b81af0dc
commit
2f6ffab1ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue