nir/lower_input_attachments: Refactor to use an options struct
[mesa.git] / src / intel / vulkan / anv_pipeline.c
index 845451f7fc213f9a4c04a2f9bd5e6ab6f3ee6b0f..cfae90f10a8340c8c93818ead76948805e05ecac 100644 (file)
@@ -744,7 +744,10 @@ anv_pipeline_lower_nir(struct anv_pipeline *pipeline,
    if (nir->info.stage == MESA_SHADER_FRAGMENT) {
       NIR_PASS_V(nir, nir_lower_wpos_center,
                  anv_pipeline_to_graphics(pipeline)->sample_shading_enable);
-      NIR_PASS_V(nir, nir_lower_input_attachments, true);
+      NIR_PASS_V(nir, nir_lower_input_attachments,
+                 &(nir_input_attachment_options) {
+                     .use_fragcoord_sysval = true,
+                 });
    }
 
    NIR_PASS_V(nir, anv_nir_lower_ycbcr_textures, layout);