[Mesa-dev] [PATCH v2 53/78] i965/nir/vec4: Implement linear interpolation
Eduardo Lima Mitev
elima at igalia.com
Thu Jul 23 03:17:33 PDT 2015
From: Antia Puentes <apuentes at igalia.com>
Adds NIR ALU operation:
* nir_op_flrp
---
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
index 147feb3..9823d8e 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp
@@ -1205,6 +1205,11 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
inst->saturate = instr->dest.saturate;
break;
+ case nir_op_flrp:
+ inst = emit_lrp(dst, op[0], op[1], op[2]);
+ inst->saturate = instr->dest.saturate;
+ break;
+
default:
unreachable("Unimplemented ALU operation");
}
--
2.1.4
More information about the mesa-dev
mailing list