radv: Don't compile shaders when they are cached already.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 21 Oct 2017 19:14:13 +0000 (21:14 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sat, 21 Oct 2017 20:29:34 +0000 (22:29 +0200)
commit67648c0faa262a12f7497ffda44f048f42e816a0
treef31f4f632059bdc2356af9061036b8fd9da9a404
parent3bf954b28ec79340227a366576382c719754dec5
radv: Don't compile shaders when they are cached already.

When the gs_copy_shader is NULL (due to an incomplete cache), but
the main shaders are found, we still do the nir, but we shouldn't
compile the shaders again. For merged shaders we should also account
for the missing shaders.

Fixes: ce03c119ce0 'radv: Add code to compile merged shaders.'
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_pipeline.c