i965/fs: add support for f2d and d2f
authorConnor Abbott <connor.w.abbott@intel.com>
Thu, 30 Jul 2015 07:20:40 +0000 (00:20 -0700)
committerSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Tue, 10 May 2016 09:25:08 +0000 (11:25 +0200)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 3772ff623bb8947a0dde491ddc3c820c2ecb1f4f..24b37822d3177177d6f71c633b8a8fb3bab3bf14 100644 (file)
@@ -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;