st/mesa: add double input support including lowering (v3.1)

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 7 May 2015 19:21 UTC

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)

ef83c9b st/mesa: add double input support including lowering (v3.1)
src/mesa/state_tracker/st_atom_array.c | 172 +++++++++++++++++++++-------
src/mesa/state_tracker/st_extensions.c | 4 +-
src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 27 ++++-
src/mesa/state_tracker/st_program.c | 5 +
src/mesa/state_tracker/st_program.h | 1 +
5 files changed, 164 insertions(+), 45 deletions(-)

Upstream: cgit.freedesktop.org


  • Share