nir/lower_input_attachments: Support loading layer id as an input
[mesa.git] / src / amd / vulkan / radv_shader.c
index 160ec595ab0154fab05a7e1eb23244a8adabc115..e0e5507e49fe6d722c47b9b09f7c9188edce4e4a 100644 (file)
@@ -508,6 +508,7 @@ radv_shader_compile_to_nir(struct radv_device *device,
                        NIR_PASS_V(nir, nir_lower_input_attachments,
                                   &(nir_input_attachment_options) {
                                        .use_fragcoord_sysval = true,
+                                       .use_layer_id_sysval = true,
                                   });
 
                NIR_PASS_V(nir, nir_remove_dead_variables,