i965/fs: add support for f2d and d2f

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Connor Abbott 2015-07-30 00:20:40 -07:00 committed by Samuel Iglesias Gonsálvez
parent 9e1b3ea199
commit a644b0939d

View 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;