microsoft/spirv_to_dxil: Add lowering pass to handle gl_PerVertex

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9846>
This commit is contained in:
Michael Tang 2021-03-23 14:39:09 -07:00 committed by Marge Bot
parent fbebe36547
commit 2f3dc0264c

View file

@ -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);