radv/ac: eliminate unused vertex shader outputs. (v2)
authorDave Airlie <airlied@redhat.com>
Fri, 21 Apr 2017 02:38:05 +0000 (03:38 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 27 Apr 2017 04:18:52 +0000 (05:18 +0100)
commitf205e19e4f8e60ef74aab804a73ba6c2f3904a6c
treef91c435e5985f9f91906447f5e214569d402e340
parente2659176cef99f5761c01aebe992a75a7aea842f
radv/ac: eliminate unused vertex shader outputs. (v2)

This is ported from radeonsi, and I can see at least one
Talos shader drops an export due to this, and saves some
VGPR usage.

v2: use shared code.

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