This commit fixes a issue where ray depth for emissive objects (E.g. Lights) was incorrect when using the ray depth output of the light path node in Cycles OSL. Pull Request: https://projects.blender.org/blender/blender/pulls/134496