zink: store shader_info in zink_shader
[mesa.git] / src / gallium / drivers / zink / zink_compiler.c
index e243166e23d5963aa37b9727ab2f4c40cfddf52b..1c3d53273211a7f6b6747a36d3d01ab61b2a4625 100644 (file)
@@ -303,6 +303,7 @@ zink_compile_nir(struct zink_screen *screen, struct nir_shader *nir)
    optimize_nir(nir);
    NIR_PASS_V(nir, nir_remove_dead_variables, nir_var_function_temp);
    NIR_PASS_V(nir, lower_discard_if);
+   NIR_PASS_V(nir, nir_convert_from_ssa, true);
 
    if (zink_debug & ZINK_DEBUG_NIR) {
       fprintf(stderr, "NIR shader:\n---8<---\n");
@@ -329,6 +330,8 @@ zink_compile_nir(struct zink_screen *screen, struct nir_shader *nir)
       }
    }
 
+   ret->info = nir->info;
+
    struct spirv_shader *spirv = nir_to_spirv(nir);
    assert(spirv);