Revert "shader: remove obsolete layout handling code"

This reverts commit 99f8cd3d.

Part-of: <!830>
21 jobs for !830 with revert-shader-layout in 64 minutes and 45 seconds (queued for 3 seconds)
latest merge request