diff options
author | Jason Ekstrand <[email protected]> | 2014-12-12 12:52:11 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:00 -0800 |
commit | 4f44120ff51fba27258376941ee965078aa8494e (patch) | |
tree | b1e73e3e72b0767fd6b2b89ff383b68eddcb7a73 /src/glsl/nir/nir.h | |
parent | 366181d826219b50ae74a5d5db49e885f3bb7c4e (diff) |
nir: Add a function for comparing two sources
Reviewed-by: Connor Abbott <[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 6c1f6682843..126e9c841c7 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1301,6 +1301,8 @@ typedef bool (*nir_foreach_src_cb)(nir_src *src, void *state); bool nir_foreach_dest(nir_instr *instr, nir_foreach_dest_cb cb, void *state); 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_ssa_def_init(nir_function_impl *impl, nir_instr *instr, nir_ssa_def *def, unsigned num_components, const char *name); |