diff options
author | Jason Ekstrand <[email protected]> | 2019-05-06 11:26:27 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-05-24 08:38:11 -0500 |
commit | 22421ca7be608f38ce701a43e3f6b7f3132b7aab (patch) | |
tree | cf0995e67b47c17850c0b207ac86d83abb248348 /src/gallium/auxiliary | |
parent | cd73b6174b093b75f581c3310bf784bed7c74c1f (diff) |
nir/builder: Merge nir_[if]mov_alu into one nir_mov_alu helper
Unless source modifiers are present, fmov and imov are the same.
There's no good reason for having two helpers.
Reviewed-by: Kristian H. Kristensen <[email protected]>
Acked-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/nir/tgsi_to_nir.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/nir/tgsi_to_nir.c b/src/gallium/auxiliary/nir/tgsi_to_nir.c index aae74111840..94d863d6815 100644 --- a/src/gallium/auxiliary/nir/tgsi_to_nir.c +++ b/src/gallium/auxiliary/nir/tgsi_to_nir.c @@ -177,7 +177,7 @@ ttn_src_for_dest(nir_builder *b, nir_alu_dest *dest) for (int i = 0; i < 4; i++) src.swizzle[i] = i; - return nir_fmov_alu(b, src, 4); + return nir_mov_alu(b, src, 4); } static enum glsl_interp_mode @@ -681,7 +681,7 @@ ttn_src_for_indirect(struct ttn_compile *c, struct tgsi_ind_register *indirect) indirect->File, indirect->Index, NULL, NULL, NULL); - return nir_imov_alu(b, src, 1); + return nir_mov_alu(b, src, 1); } static nir_alu_dest @@ -793,7 +793,7 @@ ttn_get_src(struct ttn_compile *c, struct tgsi_full_src_register *tgsi_fsrc, src.swizzle[2] = tgsi_src->SwizzleZ; src.swizzle[3] = tgsi_src->SwizzleW; - nir_ssa_def *def = nir_fmov_alu(b, src, 4); + nir_ssa_def *def = nir_mov_alu(b, src, 4); if (tgsi_src->Absolute) { if (src_is_float) @@ -1446,7 +1446,7 @@ ttn_tex(struct ttn_compile *c, nir_alu_dest dest, nir_ssa_def **src) instr->src[src_number].src_type = nir_tex_src_offset; instr->src[src_number].src = nir_src_for_ssa( - nir_fmov_alu(b, src, nir_tex_instr_src_size(instr, src_number))); + nir_mov_alu(b, src, nir_tex_instr_src_size(instr, src_number))); src_number++; } |