nir: Drop unused argument from nir_ssa_dest_init_for_type
Similar to nir_ssa_dest_init, but with fewer call sites to churn through. This was done with the help of Coccinelle: @@ expression A, B, C, D; @@ -nir_ssa_dest_init_for_type(A, B, C, D); +nir_ssa_dest_init_for_type(A, B, C); 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>
This commit is contained in:
committed by
Marge Bot
parent
01e9ee79f7
commit
c7861fe1f2
@@ -173,8 +173,7 @@ lower_system_value_instr(nir_builder *b, nir_instr *instr, void *_state)
|
||||
nir_intrinsic_op op =
|
||||
nir_intrinsic_from_system_value(var->data.location);
|
||||
nir_intrinsic_instr *load = nir_intrinsic_instr_create(b->shader, op);
|
||||
nir_ssa_dest_init_for_type(&load->instr, &load->dest,
|
||||
var->type, NULL);
|
||||
nir_ssa_dest_init_for_type(&load->instr, &load->dest, var->type);
|
||||
load->num_components = load->dest.ssa.num_components;
|
||||
nir_builder_instr_insert(b, &load->instr);
|
||||
return &load->dest.ssa;
|
||||
|
||||
Reference in New Issue
Block a user