gallium/ttn: Convert to using VARYING_SLOT_* / FRAG_RESULT_*.
authorEric Anholt <eric@anholt.net>
Tue, 4 Aug 2015 21:28:02 +0000 (14:28 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 16 Sep 2015 19:03:53 +0000 (15:03 -0400)
commit8fd3e53f3dc40e4013348e63a0cc7a2787410899
treec5bca82d5093d81a4b5ecd7d5232c636dd684761
parent7a275fcda8ffa3d69b7be6f356469f4af272a6ad
gallium/ttn: Convert to using VARYING_SLOT_* / FRAG_RESULT_*.

This avoids exceeding the size of the .index bitfield since it got
truncated, and should make our NIR look more like the NIR that the rest of
the NIR developers are working on.

v2: split out vc4 updates, first patch uses varying_slot_to_tgsi_semantic()
    helper, and second patch does the actual conversion.
v3: add frag_result_to_tgsi_semantic() helper and don't try to map
    frag_results to semantic name/index as if they were varying_slot's
v4: use VERT_ATTRIB_ for VS inputs
v5: Fix vc4 build.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/nir/tgsi_to_nir.c
src/gallium/auxiliary/nir/tgsi_to_nir.h
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/vc4/vc4_nir_lower_blend.c
src/gallium/drivers/vc4/vc4_nir_lower_io.c
src/gallium/drivers/vc4/vc4_program.c