diff options
author | Antia Puentes <apuentes@igalia.com> | 2015-06-17 09:52:43 +0200 |
---|---|---|
committer | Jason Ekstrand <jason.ekstrand@intel.com> | 2015-08-03 09:40:49 -0700 |
commit | b38fcd0aea8d17919ecd9cc7afc518cfb2c01c27 (patch) | |
tree | 52929082d6e5abb0241958722745b1a9d2713b9b | |
parent | 314474872b77f291132a01f7c1df2788586fc943 (diff) | |
download | external_mesa3d-b38fcd0aea8d17919ecd9cc7afc518cfb2c01c27.zip external_mesa3d-b38fcd0aea8d17919ecd9cc7afc518cfb2c01c27.tar.gz external_mesa3d-b38fcd0aea8d17919ecd9cc7afc518cfb2c01c27.tar.bz2 |
i965/nir/vec4: Implement linear interpolation
Adds NIR ALU operation:
* nir_op_flrp
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_nir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp index 2cf1576..1ee8597 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_nir.cpp @@ -1202,6 +1202,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"); } |