radv/ac: pass clips properly from vertex->geometry shader stages.
authorDave Airlie <airlied@redhat.com>
Tue, 21 Feb 2017 04:09:11 +0000 (14:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Feb 2017 05:31:37 +0000 (15:31 +1000)
commitbec584ec0ea29e81f87fbd4d4a07ef398b8961d1
tree848e38c9cf3133a93fd5a40a3f9344ab4f735e88
parentc2cfb54f139c27023913212d92c463be4661de38
radv/ac: pass clips properly from vertex->geometry shader stages.

This works out the geometry shader clip/cull inputs separately
to the outputs, and uses that information to read from the ES->GS
ring buffer. It stores the clip/cull distances packed into one
or two slots. It fixes the es output emission and gs input
reading to match.

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