radv: Link shaders.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 8 Feb 2017 23:12:10 +0000 (00:12 +0100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 17 Oct 2017 22:19:35 +0000 (09:19 +1100)
commit06f05040eb73382e9b1afb155a4ff12f3b20ed49
tree0b183c477812fd6f0cc811276c82b996ba78ae0e
parentdbbf10541b134253a576da23ea6b3c6a5afc0dc8
radv: Link shaders.

Here we make use of NIR the linking helpers to remove unused
varyings.

Sascha Willems demo results:

computecullandlod 39 -> 41 fps
pipelines ~6100 -> ~6200 fps

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Signed-off-by: Timothy Arceri <tarceri@itsqueeze.com>
Acked-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h