i965/nir: Use emit_lrp for emitting flrp
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 17 Mar 2015 18:37:09 +0000 (11:37 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 23 Mar 2015 08:01:14 +0000 (01:01 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp

index 5d88fe7ae6106e1010a96ee3a1d5c5c0a9355c71..a059dbb6a562e984207dced848be66440de6f527 100644 (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;