diff options
author | Connor Abbott <cwabbott0@gmail.com> | 2016-04-12 22:56:14 -0400 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2016-04-28 15:52:17 -0700 |
commit | 7efff10585122d484dc3adab14af9380b9b8f309 (patch) | |
tree | f0e5e2c59224d1951b30de9f6fe66e23f5994d6a /src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c | |
parent | 3a8688fb4103ed6f21d1311a9331efff456294b0 (diff) | |
download | external_mesa3d-7efff10585122d484dc3adab14af9380b9b8f309.tar.gz external_mesa3d-7efff10585122d484dc3adab14af9380b9b8f309.tar.bz2 external_mesa3d-7efff10585122d484dc3adab14af9380b9b8f309.zip |
i965/nir: fixup for new foreach_block()
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c b/src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c index 57cc07da6e..c21e16d650 100644 --- a/src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c +++ b/src/mesa/drivers/dri/i965/brw_nir_attribute_workarounds.c @@ -39,9 +39,8 @@ struct attr_wa_state { }; static bool -apply_attr_wa_block(nir_block *block, void *void_state) +apply_attr_wa_block(nir_block *block, struct attr_wa_state *state) { - struct attr_wa_state *state = void_state; nir_builder *b = &state->builder; nir_foreach_instr_safe(block, instr) { @@ -163,7 +162,9 @@ brw_nir_apply_attribute_workarounds(nir_shader *shader, nir_builder_init(&state.builder, func->impl); state.impl_progress = false; - nir_foreach_block_call(func->impl, apply_attr_wa_block, &state); + nir_foreach_block(block, func->impl) { + apply_attr_wa_block(block, &state); + } if (state.impl_progress) { nir_metadata_preserve(func->impl, nir_metadata_block_index | |