glsl: fix regression with Heaven and tidy up more linker code
The first patch fixes a regression with the Heaven benchmark the second patch moves more logic in the same area to the NIR linker tidying up a bunch of code in the process.
The first patch fixes a regression with the Heaven benchmark the second patch moves more logic in the same area to the NIR linker tidying up a bunch of code in the process.