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/gallium/drivers/vc4/vc4_nir_lower_io.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/gallium/drivers/vc4/vc4_nir_lower_io.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_nir_lower_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_nir_lower_io.c b/src/gallium/drivers/vc4/vc4_nir_lower_io.c index 61025122a74..74e1e1abbf0 100644 --- a/src/gallium/drivers/vc4/vc4_nir_lower_io.c +++ b/src/gallium/drivers/vc4/vc4_nir_lower_io.c @@ -303,7 +303,7 @@ vc4_nir_lower_uniform(struct vc4_compile *c, nir_builder *b, nir_intrinsic_instr_create(c->s, intr->intrinsic); intr_comp->num_components = 1; nir_ssa_dest_init(&intr_comp->instr, &intr_comp->dest, 1, - intr->dest.ssa.bit_size, NULL); + intr->dest.ssa.bit_size); /* Convert the uniform offset to bytes. If it happens * to be a constant, constant-folding will clean up |