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
@@ -54,7 +54,7 @@ v3d_nir_lower_txf_ms_instr(nir_builder *b, nir_instr *in_instr, void *data)
|
||||
else
|
||||
coord = nir_vec2(b, x, y);
|
||||
|
||||
nir_tex_instr_add_src(instr, nir_tex_src_coord, nir_src_for_ssa(coord));
|
||||
nir_tex_instr_add_src(instr, nir_tex_src_coord, coord);
|
||||
instr->op = nir_texop_txf;
|
||||
instr->sampler_dim = GLSL_SAMPLER_DIM_2D;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user