clover/nir: Copy global variables from libclc shader

We can't just copy functions from the libclc shader into the user
shader, but we also need to copy global variables where they exist and
are in use.

Signed-off-by: Daniel Stone <daniels@collabora.com>
48 jobs for !4323 with cl-use-libclc-spirv
latest merge request