glsl/i965: move lower_offset_array up to GLSL compiler level.
authorDave Airlie <airlied@redhat.com>
Mon, 10 Feb 2014 23:41:44 +0000 (09:41 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 25 Feb 2014 03:28:57 +0000 (13:28 +1000)
commit122c3b9486d3dbf8cb6b796c9a25f43817f006d3
tree06adcc7da94ddd3c12568e445768dab569021e5a
parent945d87f95877e198fb2203f47a4ebbccae883978
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>
src/glsl/Makefile.sources
src/glsl/ir_optimization.h
src/glsl/lower_offset_array.cpp [new file with mode: 0644]
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_lower_offset_array.cpp [deleted file]
src/mesa/drivers/dri/i965/brw_shader.cpp