i965/fs: add support for f2d and d2f
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
committed by
Samuel Iglesias Gonsálvez
parent
9e1b3ea199
commit
a644b0939d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user