nir: check shader type before writing to shaderinfo.tess union