i965/nir/vec4: Implement linear interpolation

Adds NIR ALU operation:
   * nir_op_flrp

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
Antia Puentes 2015-06-17 09:52:43 +02:00 committed by Jason Ekstrand
parent 314474872b
commit b38fcd0aea

View file

@ -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");
}