radv/ac: handle gs->copy shader clip distances.
authorDave Airlie <airlied@redhat.com>
Tue, 21 Feb 2017 04:13:20 +0000 (14:13 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Feb 2017 05:31:41 +0000 (15:31 +1000)
commitb71e6538a8dcd51a8e9760df61764972020dfff7
treee4417465972362fc236d202e59c939d44bb9eca2
parentbec584ec0ea29e81f87fbd4d4a07ef398b8961d1
radv/ac: handle gs->copy shader clip distances.

This fixes up the clip distance passing between the geometry
shader and the copy shader. It packs the clip and cull distances
into one or two consecutive slots, and avoids wasting space and
make sure the gs output and copy shader input agree on where
things are stored.

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