i965/vec4: Add support for fdph_replicated
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 Sep 2015 23:55:42 +0000 (16:55 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 23 Sep 2015 03:37:35 +0000 (20:37 -0700)
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_vec4_nir.cpp

index 20c063d0010fc64abf56a5b2db5a90bf4893a93d..c681ae438efab858ac61b7f3b8c1db29bbdfb88a 100644 (file)
@@ -1268,6 +1268,11 @@ vec4_visitor::nir_emit_alu(nir_alu_instr *instr)
       inst->saturate = instr->dest.saturate;
       break;
 
+   case nir_op_fdph_replicated:
+      inst = emit(BRW_OPCODE_DPH, dst, op[0], op[1]);
+      inst->saturate = instr->dest.saturate;
+      break;
+
    case nir_op_bany2:
    case nir_op_bany3:
    case nir_op_bany4: {