Mesa (master): zink: add some 64-bit conversion ALUs

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Dec 18 01:17:10 UTC 2020


Module: Mesa
Branch: master
Commit: 98a73027e14ab8ae025dddd8a8b611b740ae1c99
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=98a73027e14ab8ae025dddd8a8b611b740ae1c99

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Jul 22 10:28:42 2020 +1000

zink: add some 64-bit conversion ALUs

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Reviewed-by: Erik Faye-Lund <kusmabite at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7654>

---

 src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index c3f03f2b356..dd3f9bd6c24 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -1236,6 +1236,9 @@ emit_alu(struct ntv_context *ctx, nir_alu_instr *alu)
    UNOP(nir_op_i2f32, SpvOpConvertSToF)
    UNOP(nir_op_u2f32, SpvOpConvertUToF)
    UNOP(nir_op_f2f32, SpvOpFConvert)
+   UNOP(nir_op_u2f64, SpvOpConvertUToF)
+   UNOP(nir_op_i2f64, SpvOpConvertSToF)
+   UNOP(nir_op_f2f64, SpvOpFConvert)
    UNOP(nir_op_bitfield_reverse, SpvOpBitReverse)
 #undef UNOP
 



More information about the mesa-commit mailing list