X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fcompiler%2Fnir%2Fnir_lower_gs_intrinsics.c;h=78c12e0547503dae490b6aab9b85bae690b01e34;hb=11e8f8a166dad78985659214755f18f97da64545;hp=68e20dd600f8c86daf6a6b67265818dc5c011f47;hpb=3ce8eeb5a1252173f68c63e9b8341a71012e0e76;p=mesa.git diff --git a/src/compiler/nir/nir_lower_gs_intrinsics.c b/src/compiler/nir/nir_lower_gs_intrinsics.c index 68e20dd600f..78c12e05475 100644 --- a/src/compiler/nir/nir_lower_gs_intrinsics.c +++ b/src/compiler/nir/nir_lower_gs_intrinsics.c @@ -77,7 +77,7 @@ rewrite_emit_vertex(nir_intrinsic_instr *intrin, struct state *state) nir_ssa_def *count = nir_load_var(b, state->vertex_count_var); nir_ssa_def *max_vertices = - nir_imm_int(b, b->shader->info->gs.vertices_out); + nir_imm_int(b, b->shader->info.gs.vertices_out); /* Create: if (vertex_count < max_vertices) and insert it. * @@ -165,7 +165,6 @@ append_set_vertex_count(nir_block *end_block, struct state *state) /* Insert the new intrinsic in all of the predecessors of the end block, * but before any jump instructions (return). */ - struct set_entry *entry; set_foreach(end_block->predecessors, entry) { nir_block *pred = (nir_block *) entry->key; b->cursor = nir_after_block_before_jump(pred);