diff options
author | Jason Ekstrand <jason.ekstrand@intel.com> | 2014-11-19 16:06:32 -0800 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-01-15 07:19:02 -0800 |
commit | 6a52d2af2f7594fcd76fcf6158eca531e48af1e3 (patch) | |
tree | 89d015f2fa2288f98551f858c655688ae4e8e9bb /src/glsl/nir/nir.h | |
parent | 829aa98320fcd529407d16991b476b71af017479 (diff) |
nir: Don't require a function in ssa_def_init
Instead, we give SSA definitions a temporary index of 0xFFFFFFFF if the
instruction does not have a block and a proper index when it actually gets
added to the list.
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index e977159584..ac2329fbbc 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1318,9 +1318,8 @@ bool nir_foreach_src(nir_instr *instr, nir_foreach_src_cb cb, void *state); bool nir_srcs_equal(nir_src src1, nir_src src2); void nir_instr_rewrite_src(nir_instr *instr, nir_src *src, nir_src new_src); -void nir_ssa_def_init(nir_function_impl *impl, nir_instr *instr, - nir_ssa_def *def, unsigned num_components, - const char *name); +void nir_ssa_def_init(nir_instr *instr, nir_ssa_def *def, + unsigned num_components, const char *name); void nir_ssa_def_rewrite_uses(nir_ssa_def *def, nir_src new_src, void *mem_ctx); /* visits basic blocks in source-code order */ |