summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-07-18 18:48:39 -0700
committerIan Romanick <[email protected]>2011-07-23 01:24:18 -0700
commit90cc372400e1f5869baabd841823bbf9296d7b01 (patch)
tree2d89bd0648d0e0b1a9fc9891f3a3a12bd9caece6 /src/glsl/ir_optimization.h
parent156f85336f80d542569f0b0182bd27c7f3218e70 (diff)
glsl: Factor out code that generates block of index comparisons
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index 59a040751d9..f7808bdda9a 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -69,3 +69,7 @@ bool lower_variable_index_to_cond_assign(exec_list *instructions,
bool lower_input, bool lower_output, bool lower_temp, bool lower_uniform);
bool lower_quadop_vector(exec_list *instructions, bool dont_lower_swz);
bool optimize_redundant_jumps(exec_list *instructions);
+
+ir_rvalue *
+compare_index_block(exec_list *instructions, ir_variable *index,
+ unsigned base, unsigned components, void *mem_ctx);