mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 21:10:12 +01:00
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:
parent
af1528cc15
commit
9b6eae2e67
2 changed files with 0 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue