nir: remove unused nir_src_copy()

Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24986>
This commit is contained in:
Timothy Arceri 2023-09-06 14:01:00 +10:00 committed by Marge Bot
parent af1528cc15
commit 9b6eae2e67
2 changed files with 0 additions and 17 deletions

View file

@ -489,21 +489,6 @@ nir_function_create(nir_shader *shader, const char *name)
return func;
}
static void
src_copy(nir_src *dest, const nir_src *src, gc_ctx *ctx)
{
dest->ssa = src->ssa;
}
/* 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, nir_instr *instr)
{
src_copy(dest, src, instr ? gc_get_context(instr) : NULL);
}
void
nir_alu_src_copy(nir_alu_src *dest, const nir_alu_src *src,
nir_alu_instr *instr)

View file

@ -1096,8 +1096,6 @@ nir_is_sequential_comp_swizzle(uint8_t *swiz, unsigned nr_comp)
return true;
}
void nir_src_copy(nir_src *dest, const nir_src *src, nir_instr *instr);
typedef struct {
/** Base source */
nir_src src;