Commit 5e87f48f authored by Andres Gomez's avatar Andres Gomez

i965/fs: set rounding mode when emitting the flrp instruction

flrp was forgotten when already adding the rounding mode for other

Fixes: ba1e25e1 ("i965/fs: set rounding mode when emitting fadd, fmul and ffma instructions")
Suggested-by: default avatarIan Romanick <>
Signed-off-by: Andres Gomez's avatarAndres Gomez <>
Reviewed-by: Caio Marcelo de Oliveira Filho's avatarCaio Marcelo de Oliveira Filho <>
Reviewed-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <>
parent 6f1468c3
Pipeline #65864 passed with stages
in 84 minutes and 31 seconds
...@@ -1817,6 +1817,13 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr, ...@@ -1817,6 +1817,13 @@ fs_visitor::nir_emit_alu(const fs_builder &bld, nir_alu_instr *instr,
break; break;
case nir_op_flrp: case nir_op_flrp:
if (nir_has_any_rounding_mode_enabled(execution_mode)) {
brw_rnd_mode rnd =
bld.emit(SHADER_OPCODE_RND_MODE, bld.null_reg_ud(),
inst = bld.LRP(result, op[0], op[1], op[2]); inst = bld.LRP(result, op[0], op[1], op[2]);
inst->saturate = instr->dest.saturate; inst->saturate = instr->dest.saturate;
break; break;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment