diff options
author | Eric Anholt <[email protected]> | 2015-01-20 16:23:51 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-22 13:52:19 -0800 |
commit | 534a4ec82f09fa37e2134c994082e71c79b7d5ec (patch) | |
tree | 598ab6b45e9a47d997c7d09881a6bad54c805d45 /src/glsl/nir/nir.h | |
parent | c5be9c126d6ca9380cd381a5eb22554e4bb71a64 (diff) |
nir: Make an easier helper for setting up SSA defs.
Almost all instructions we nir_ssa_def_init() for are nir_dests, and you
have to keep from forgetting to set is_ssa when you do. Just provide the
simpler helper, instead.
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r-- | src/glsl/nir/nir.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 52bcd877f44..15f8f465f19 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1456,6 +1456,8 @@ nir_const_value *nir_src_as_const_value(nir_src src); 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_dest_init(nir_instr *instr, nir_dest *dest, + 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); |