i965/nir: Use emit_lrp for emitting flrp

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Jason Ekstrand 2015-03-17 11:37:09 -07:00
parent a3e05898e9
commit 235c728020

View file

@ -1243,8 +1243,7 @@ fs_visitor::nir_emit_alu(nir_alu_instr *instr)
break;
case nir_op_flrp:
/* TODO emulate for gen < 6 */
inst = emit(LRP(result, op[2], op[1], op[0]));
inst = emit_lrp(result, op[0], op[1], op[2]);
inst->saturate = instr->dest.saturate;
break;