Many of the upfront specialized variants were not needed/ They are only used if some scene render setting changes, which we can detect upfront. This is noticeable on OpenGL which doesn't support specialization constant and has to do full shader recompilation for each variants. Pull Request: https://projects.blender.org/blender/blender/pulls/138589