nir, radeonsi: add lowering from FS LAYER to LAYER_ID sysval, enable in radeonsi, optimize
The first 2 commits are for NIR.
The rest is for AMD drivers. The st/mesa fix probably doesn't affect anything else.
The first 2 commits are for NIR.
The rest is for AMD drivers. The st/mesa fix probably doesn't affect anything else.