radv/ac: add support for TCS/TES inputs/outputs.
authorDave Airlie <airlied@redhat.com>
Thu, 30 Mar 2017 07:28:46 +0000 (08:28 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 31 Mar 2017 21:16:42 +0000 (07:16 +1000)
commit94f9591995f3e682a570400c7b6e6237b89ad113
tree01528fc6f9aa4416e4d458e3bfc31858d32818d2
parent5ab1289b485b660fbf21cddae9e28d0358072a70
radv/ac: add support for TCS/TES inputs/outputs.

This adds support for the tessellation inputs/outputs to the
shader compiler, this is one of the main pieces of the patch.

It is very similiar to the radeonsi code (post merge we should
consider if there are better sharing opportunities). The main
differences from radeonsi, is that we can have "compact" varyings
for clip/cull/tess factors, and we have to add special handling
for these.

This consists of treating the const index from the deref different
depending on the compactness.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/common/ac_nir_to_llvm.c