From: Connor Abbott Date: Thu, 30 Jul 2015 07:20:40 +0000 (-0700) Subject: i965/fs: add support for f2d and d2f X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a644b0939dd8284bca25042bccd2439c173dd7d7;p=mesa.git i965/fs: add support for f2d and d2f Reviewed-by: Kenneth Graunke --- 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;