2562c9c5c6
GL spec forces driver to ignore gl_Layer, if layered rendering is not enabled. Since vulkan doesn't have the same bavior, emulate this by forcing gl_Layer to 0, based on driver internal state. This was seen as failure in KHR-GL46.texture_cube_map_array.color_depth_attachments Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19163>