From 170d428887d05500f5783dc30de05934e2edc29d Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Sun, 17 Jul 2022 05:07:34 -0700 Subject: [PATCH] microsoft/compiler: Lower I/O to scalar A future change will start computing component masks while processing I/O instructions, and only having to compute a mask for one component per instruction simplifies things. Reviewed-by: Erik Faye-Lund Part-of: --- src/microsoft/compiler/nir_to_dxil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index 10f733e..1055807 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -5757,6 +5757,7 @@ nir_to_dxil(struct nir_shader *s, const struct nir_to_dxil_options *opts, NIR_PASS_V(s, dxil_nir_ensure_position_writes); NIR_PASS_V(s, nir_lower_pack); NIR_PASS_V(s, dxil_nir_lower_system_values); + NIR_PASS_V(s, nir_lower_io_to_scalar, nir_var_shader_in | nir_var_system_value | nir_var_shader_out); if (ctx->mod.shader_kind == DXIL_HULL_SHADER) NIR_PASS_V(s, dxil_nir_split_tess_ctrl, &ctx->tess_ctrl_patch_constant_func); -- 2.7.4