From 235c728020af352ee0f4b7d598c951f4a4e83232 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 17 Mar 2015 11:37:09 -0700 Subject: [PATCH] i965/nir: Use emit_lrp for emitting flrp Reviewed-by: Matt Turner Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 5d88fe7ae61..a059dbb6a56 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -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; -- 2.30.2