Module: Mesa Branch: vulkan Commit: b75d770963a6fde474ed84cad73ee754922bccbf URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b75d770963a6fde474ed84cad73ee754922bccbf
Author: Jason Ekstrand <jason.ekstr...@intel.com> Date: Fri Mar 25 10:43:17 2016 -0700 nir/builder: Simplify nir_ssa_undef a bit --- src/compiler/nir/nir_builder.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h index 22646f7..3dc7c25 100644 --- a/src/compiler/nir/nir_builder.h +++ b/src/compiler/nir/nir_builder.h @@ -83,8 +83,7 @@ nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) if (!undef) return NULL; - nir_instr_insert(nir_before_block(nir_start_block(build->impl)), - &undef->instr); + nir_instr_insert(nir_before_cf_list(&build->impl->body), &undef->instr); return &undef->def; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit