st/mesa: add double input support including lowering (v3.1)
authorDave Airlie <airlied@redhat.com>
Fri, 20 Feb 2015 01:42:19 +0000 (11:42 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 8 May 2015 00:21:02 +0000 (10:21 +1000)
commitef83c9b762ee083a2bf1948befdb5dd0fb8df00b
treed62a80370de32a390fff544fefd535265b39ce88
parentc4254ee526145ce9bab227264226f5d6f741ff0e
st/mesa:  add double input support including lowering (v3.1)

This takes a different approach to previously, we cannot index into the
inputMapping with anything but the mesa attribute index, so we can't use
the just add one to index trick, we need more info to add one to it
after we've mapped the input.

(Fixed copy propgation and cleaned up a little)

v2: drop float64 format check, just attr->Doubles.
merge enable patch.
v3: cleanup code a bit.
v3.1: minor review fixups (comment, newline) (Ilia)

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/state_tracker/st_atom_array.c
src/mesa/state_tracker/st_extensions.c
src/mesa/state_tracker/st_glsl_to_tgsi.cpp
src/mesa/state_tracker/st_program.c
src/mesa/state_tracker/st_program.h