radv: clone meta shaders before linking
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 23 Oct 2017 00:10:47 +0000 (11:10 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Mon, 23 Oct 2017 22:27:40 +0000 (09:27 +1100)
commit013313cf895e4d47b2631d5f4dd32fcbce2b0a17
tree039a88ec86f6d836f63b338a3f432bfe924441df
parent069211f205e0f62b3cdae94608b63b253f37799e
radv: clone meta shaders before linking

The IR is reused in different pipeline combinations so we need
to clone it to avoid link time optimistaions messing up the
original copy.

Fixes: 06f05040eb73 (radv: Link shaders)

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c