nir: Take a nir_def * in nir_tex_instr_add_src()
NIR bits were hand-typed. Driver updates done through the following
semantic patch:
@@
expression T, ST, D;
@@
-nir_tex_instr_add_src(T, ST, nir_src_for_ssa(D));
+nir_tex_instr_add_src(T, ST, D);
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24729>
This commit is contained in:
committed by
Marge Bot
parent
6d168b93bc
commit
298a3eebd8
@@ -325,8 +325,8 @@ load_texel(nir_builder *b, nir_tex_instr *tex, wrap_lower_param_t *params)
|
||||
texcoord = nir_f2i32(b, texcoord);
|
||||
|
||||
nir_tex_instr *load = create_txf_from_tex(b, tex);
|
||||
nir_tex_instr_add_src(load, nir_tex_src_lod, nir_src_for_ssa(params->lod));
|
||||
nir_tex_instr_add_src(load, nir_tex_src_coord, nir_src_for_ssa(texcoord));
|
||||
nir_tex_instr_add_src(load, nir_tex_src_lod, params->lod);
|
||||
nir_tex_instr_add_src(load, nir_tex_src_coord, texcoord);
|
||||
b->cursor = nir_after_instr(&load->instr);
|
||||
return &load->def;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user