ac: add support for explicit component packing
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 5 Oct 2017 00:44:39 +0000 (11:44 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 25 Oct 2017 06:02:40 +0000 (17:02 +1100)
commit8ebaf8192a78cd4beb2014cd0765e1032e06b2e0
treec8c4a343e9f661d7f8854b983a348e837c25316e
parente0e0666584d0e13b030dcfcf0c08273f893c8d55
ac: add support for explicit component packing

This is needed for RADV to support explicit component packing.

This is also required to use the new NIR component splitting /
packing passes.

V2:
 - add commponent packing support for interpolate_at* intrinsics
 - improve store packing support when not all varyings are scalar
   as spotted by Bas the store source was incorrectly offset.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c