diff options
author | Alyssa Rosenzweig <alyssa@rosenzweig.io> | 2023-05-17 09:08:22 -0400 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2023-05-17 23:46:16 +0000 |
commit | 01e9ee79f70e9047fd37796416165c5174d8c70f (patch) | |
tree | 3d6a139918e98ce3af2c1af42b1f0724dbb4c6ae /src/compiler/nir/nir_lower_vars_to_ssa.c | |
parent | 7adf6c75efa215d59d466800ddd7a90065157d8b (diff) | |
download | mesa-01e9ee79f70e9047fd37796416165c5174d8c70f.tar.gz |
nir: Drop unused name from nir_ssa_dest_init
Since 624e799cc34 ("nir: Drop nir_ssa_def::name and nir_register::name"), SSA
defs don't have names, making the name argument unused. Drop it from the
signature and fix the call sites. This was done with the help of the following
Coccinelle semantic patch:
@@
expression A, B, C, D, E;
@@
-nir_ssa_dest_init(A, B, C, D, E);
+nir_ssa_dest_init(A, B, C, D);
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23078>
Diffstat (limited to 'src/compiler/nir/nir_lower_vars_to_ssa.c')
-rw-r--r-- | src/compiler/nir/nir_lower_vars_to_ssa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_vars_to_ssa.c b/src/compiler/nir/nir_lower_vars_to_ssa.c index 4e439a16997..4987d33d88f 100644 --- a/src/compiler/nir/nir_lower_vars_to_ssa.c +++ b/src/compiler/nir/nir_lower_vars_to_ssa.c @@ -610,7 +610,7 @@ rename_variables(struct lower_variables_state *state) mov->dest.write_mask = (1 << intrin->num_components) - 1; nir_ssa_dest_init(&mov->instr, &mov->dest.dest, intrin->num_components, - intrin->dest.ssa.bit_size, NULL); + intrin->dest.ssa.bit_size); nir_instr_insert_before(&intrin->instr, &mov->instr); nir_instr_remove(&intrin->instr); |