nir: Get rid of nir_shader::stage
[mesa.git] / src / compiler / nir / nir_clone.c
index c13163f25c6929897d8add7bc0f31bcdc451ebc5..bcfdaa75942339ff30d3aab63f0e28909abc4ed0 100644 (file)
@@ -737,7 +737,7 @@ nir_shader_clone(void *mem_ctx, const nir_shader *s)
    clone_state state;
    init_clone_state(&state, NULL, true, false);
 
-   nir_shader *ns = nir_shader_create(mem_ctx, s->stage, s->options, NULL);
+   nir_shader *ns = nir_shader_create(mem_ctx, s->info.stage, s->options, NULL);
    state.ns = ns;
 
    clone_var_list(&state, &ns->uniforms, &s->uniforms);