Merge branch 'master' of ../mesa into vulkan
[mesa.git] / src / glsl / nir / nir_opt_gcm.c
index 44068bf37b8561820d3440667a778f855b4f3496..5b412eebc32df9fba71658f6fce100db386efbd3 100644 (file)
@@ -256,7 +256,7 @@ gcm_schedule_early_instr(nir_instr *instr, struct gcm_state *state)
    /* Start with the instruction at the top.  As we iterate over the
     * sources, it will get moved down as needed.
     */
-   instr->block = state->impl->start_block;
+   instr->block = nir_start_block(state->impl);
    state->instr = instr;
 
    nir_foreach_src(instr, gcm_schedule_early_src, state);