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.h | |
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.h')
-rw-r--r-- | src/compiler/nir/nir.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 8ac06bd5ed3..e5a37fb47fa 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -4450,8 +4450,7 @@ void nir_instr_rewrite_dest(nir_instr *instr, nir_dest *dest, nir_dest new_dest); void nir_ssa_dest_init(nir_instr *instr, nir_dest *dest, - unsigned num_components, unsigned bit_size, - const char *name); + unsigned num_components, unsigned bit_size); void nir_ssa_def_init(nir_instr *instr, nir_ssa_def *def, unsigned num_components, unsigned bit_size); static inline void @@ -4461,7 +4460,7 @@ nir_ssa_dest_init_for_type(nir_instr *instr, nir_dest *dest, { assert(glsl_type_is_vector_or_scalar(type)); nir_ssa_dest_init(instr, dest, glsl_get_components(type), - glsl_get_bit_size(type), name); + glsl_get_bit_size(type)); } void nir_ssa_def_rewrite_uses(nir_ssa_def *def, nir_ssa_def *new_ssa); void nir_ssa_def_rewrite_uses_src(nir_ssa_def *def, nir_src new_src); |