[Mesa-dev] [PATCH 45/59] i965/fs: add support for f2d and d2f
Samuel Iglesias Gonsálvez
siglesias at igalia.com
Fri Apr 29 11:29:42 UTC 2016
From: Connor Abbott <connor.w.abbott at intel.com>
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 70ffc6d..f8a82d7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -715,6 +715,8 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr)
if (optimize_extract_to_float(instr, result))
return;
+ case nir_op_f2d:
+ case nir_op_d2f:
inst = bld.MOV(result, op[0]);
inst->saturate = instr->dest.saturate;
break;
--
2.5.0
More information about the mesa-dev
mailing list