diff --git a/src/microsoft/compiler/nir_to_dxil.c b/src/microsoft/compiler/nir_to_dxil.c index aa22c3ba42157ba970e234896e55266023ee7df7..311ebeb2ee0e170d2dfebf9c12a2705a87bb471e 100644 --- a/src/microsoft/compiler/nir_to_dxil.c +++ b/src/microsoft/compiler/nir_to_dxil.c @@ -4263,7 +4263,7 @@ append_input_or_sysvalue(struct ntd_context *ctx, nir_shader *s, if (!ctx->system_value[sv_slot]) return false; - exec_list_push_tail(&s->system_values, &ctx->system_value[sv_slot]->node); + nir_shader_add_variable(s, ctx->system_value[sv_slot]); return true; }