st/mesa: add texture gather support. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 7 Feb 2014 01:37:31 +0000 (11:37 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 25 Feb 2014 03:29:37 +0000 (13:29 +1000)
commit7c3138acb9de06148c0162384e49cc093148a1d6
treebe4a5bddfab1f726be6b8d9339ada173a9636358
parent2fcbec48d78af2cd03138feb83e63e439a4b6a60
st/mesa: add texture gather support. (v2)

This adds support for GL_ARB_texture_gather, and one step of
support for GL_ARB_gpu_shader5.

This adds support for passing the TG4 instruction, along
with non-constant texture offsets, and tracking them for the
optimisation passes.

This doesn't support native textureGatherOffsets hw, to do that
you'd need to add a CAP and if set disable the lowering pass,
and bump the MAX offsets to 4, then do the i0,j0 sampling using
those.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp