summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2020-01-20 16:05:31 +0100
committerMarge Bot <[email protected]>2020-01-22 15:31:28 +0000
commite1f9e8d60b979a6dbbaf1616638c395113a4eb7a (patch)
tree77b307af12741066e440d9a99fd75b8e1bba319c /src/panfrost/midgard
parentf53a0799c7d08b4c0125b95a89f872897a8e8cdf (diff)
panfrost/midgard: Add f2f64 support
So we can convert floats into doubles. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3478>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 49b8f123661..b03db8f61f8 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -851,8 +851,10 @@ emit_alu(compiler_context *ctx, nir_alu_instr *instr)
case nir_op_u2u32:
case nir_op_u2u64:
case nir_op_f2f16:
- case nir_op_f2f32: {
- if (instr->op == nir_op_f2f16 || instr->op == nir_op_f2f32)
+ case nir_op_f2f32:
+ case nir_op_f2f64: {
+ if (instr->op == nir_op_f2f16 || instr->op == nir_op_f2f32 ||
+ instr->op == nir_op_f2f64)
op = midgard_alu_op_fmov;
else
op = midgard_alu_op_imov;