summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/prog_to_nir.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-05-06 11:26:27 -0500
committerJason Ekstrand <[email protected]>2019-05-24 08:38:11 -0500
commit22421ca7be608f38ce701a43e3f6b7f3132b7aab (patch)
treecf0995e67b47c17850c0b207ac86d83abb248348 /src/mesa/program/prog_to_nir.c
parentcd73b6174b093b75f581c3310bf784bed7c74c1f (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/mesa/program/prog_to_nir.c')
-rw-r--r--src/mesa/program/prog_to_nir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c
index 36e9b689b6b..9e45181beed 100644
--- a/src/mesa/program/prog_to_nir.c
+++ b/src/mesa/program/prog_to_nir.c
@@ -83,7 +83,7 @@ ptn_src_for_dest(struct ptn_compile *c, 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 nir_alu_dest
@@ -205,7 +205,7 @@ ptn_get_src(struct ptn_compile *c, const struct prog_src_register *prog_src)
for (int i = 0; i < 4; i++)
src.swizzle[i] = GET_SWZ(prog_src->Swizzle, i);
- def = nir_fmov_alu(b, src, 4);
+ def = nir_mov_alu(b, src, 4);
if (prog_src->Negate)
def = nir_fneg(b, def);