diff options
-rw-r--r-- | src/compiler/nir/nir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index 8364197480b..ef911540f37 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -212,6 +212,9 @@ nir_function_create(nir_shader *shader, const char *name) return func; } +/* NOTE: if the instruction you are copying a src to is already added + * to the IR, use nir_instr_rewrite_src() instead. + */ void nir_src_copy(nir_src *dest, const nir_src *src, void *mem_ctx) { dest->is_ssa = src->is_ssa; |