nir: add varying component packing helpers
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 18 Oct 2017 08:40:06 +0000 (19:40 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 3 Dec 2017 22:10:30 +0000 (09:10 +1100)
commit1c9c42d16b4c8ab896537c32e3b2df237be69323
tree092c3065d643ddcfca0d6da9b8eb0e1d6b79a445
parentc797bc6aa7b339deb96be5f9c75662439a4963b6
nir: add varying component packing helpers

v2: update shader info input/output masks when pack components
v3: make sure interpolation loc matches, this is required for the
    radeonsi NIR backend.
v4: 33dca36f4f28 fixed nir_gather_info to update outputs_read
    correct, make sure we also adjust this correctly when
    packing components.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (v1)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> (v3)
src/compiler/nir/nir.h
src/compiler/nir/nir_linking_helpers.c