summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-09-18 15:04:03 -0500
committerIan Romanick <[email protected]>2017-10-02 14:46:02 -0700
commit3cc997c7c81759446f4478d70252015fbe0ed9f5 (patch)
tree451880529c5e62a9126218880fa341342d2ba2e9 /src/compiler/glsl/ir_optimization.h
parenteb58668525a92086923009ecb5c75d61567b89a8 (diff)
glsl: Convert lower_variable_index_to_cond_assign to ir_builder
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_optimization.h')
-rw-r--r--src/compiler/glsl/ir_optimization.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h
index 0fbbf34595f..38fb54990ea 100644
--- a/src/compiler/glsl/ir_optimization.h
+++ b/src/compiler/glsl/ir_optimization.h
@@ -170,9 +170,11 @@ bool lower_blend_equation_advanced(gl_linked_shader *shader);
bool lower_subroutine(exec_list *instructions, struct _mesa_glsl_parse_state *state);
void propagate_invariance(exec_list *instructions);
-ir_variable *compare_index_block(exec_list *instructions, ir_variable *index,
- unsigned base, unsigned components,
- void *mem_ctx);
+namespace ir_builder { class ir_factory; };
+
+ir_variable *compare_index_block(ir_builder::ir_factory &body,
+ ir_variable *index,
+ unsigned base, unsigned components);
bool lower_64bit_integer_instructions(exec_list *instructions,
unsigned what_to_lower);