diff --git a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c index 36bb65ff26a..b3649d01176 100644 --- a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c +++ b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c @@ -194,6 +194,12 @@ spirv_to_dxil(const uint32_t *words, size_t word_count, nir_validate_shader(nir, "Validate before feeding NIR to the DXIL compiler"); + const struct nir_lower_sysvals_to_varyings_options sysvals_to_varyings = { + .frag_coord = true, + .point_coord = true, + }; + NIR_PASS_V(nir, nir_lower_sysvals_to_varyings, &sysvals_to_varyings); + NIR_PASS_V(nir, nir_lower_system_values); if (conf->zero_based_vertex_instance_id) {