From a644b0939dd8284bca25042bccd2439c173dd7d7 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Thu, 30 Jul 2015 00:20:40 -0700 Subject: i965/fs: add support for f2d and d2f Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 3772ff623bb..24b37822d31 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -723,6 +723,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; -- cgit v1.2.3