mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
nir: add comment about nir_src_copy()
So it is more clear about when to use nir_instr_rewrite_src() Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
1d94aa1987
commit
c4457113e9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue