summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2014-02-11 09:41:44 +1000
committerDave Airlie <airlied@redhat.com>2014-02-25 13:28:57 +1000
commit122c3b9486d3dbf8cb6b796c9a25f43817f006d3 (patch)
tree06adcc7da94ddd3c12568e445768dab569021e5a /src/glsl/ir_optimization.h
parent945d87f95877e198fb2203f47a4ebbccae883978 (diff)
downloadexternal_mesa3d-122c3b9486d3dbf8cb6b796c9a25f43817f006d3.zip
external_mesa3d-122c3b9486d3dbf8cb6b796c9a25f43817f006d3.tar.gz
external_mesa3d-122c3b9486d3dbf8cb6b796c9a25f43817f006d3.tar.bz2
glsl/i965: move lower_offset_array up to GLSL compiler level.
This lowering pass will be useful for gallium drivers as well, in order to support the GL TG4 oddity that is textureGatherOffsets. Reviewed-by: Chris Forbes <chrisf@ijw.co.nz> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r--src/glsl/ir_optimization.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h
index 055d655..24d019b 100644
--- a/src/glsl/ir_optimization.h
+++ b/src/glsl/ir_optimization.h
@@ -120,6 +120,7 @@ bool lower_vector_insert(exec_list *instructions, bool lower_nonconstant_index);
void lower_named_interface_blocks(void *mem_ctx, gl_shader *shader);
bool optimize_redundant_jumps(exec_list *instructions);
bool optimize_split_arrays(exec_list *instructions, bool linked);
+bool lower_offset_arrays(exec_list *instructions);
ir_rvalue *
compare_index_block(exec_list *instructions, ir_variable *index,