From 2f3dc0264cea9385805807a2f34628b3cee83168 Mon Sep 17 00:00:00 2001 From: Michael Tang Date: Tue, 23 Mar 2021 14:39:09 -0700 Subject: [PATCH] microsoft/spirv_to_dxil: Add lowering pass to handle gl_PerVertex Reviewed-by: Jesse Natalie Reviewed-by: Bill Kristiansen Part-of: --- src/microsoft/spirv_to_dxil/spirv_to_dxil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c index 7f57dc0980f..24cda80972e 100644 --- a/src/microsoft/spirv_to_dxil/spirv_to_dxil.c +++ b/src/microsoft/spirv_to_dxil/spirv_to_dxil.c @@ -52,6 +52,7 @@ spirv_to_dxil(const uint32_t *words, size_t word_count, nir_validate_shader(nir, "Validate before feeding NIR to the DXIL compiler"); + NIR_PASS_V(nir, nir_split_per_member_structs); NIR_PASS_V(nir, nir_lower_returns); NIR_PASS_V(nir, nir_inline_functions);