Lines Matching refs:operand1
389 #define i915_fs_arith_masked(op, dest_reg, dest_mask, operand0, operand1, operand2) \
390 _i915_fs_arith_masked(A0_##op, dest_reg, dest_mask, operand0, operand1, operand2)
392 #define i915_fs_arith(op, dest_reg, operand0, operand1, operand2) \
393 _i915_fs_arith(A0_##op, dest_reg, operand0, operand1, operand2)
395 #define _i915_fs_arith_masked(cmd, dest_reg, dest_mask, operand0, operand1, operand2) \
419 (REG_TYPE(operand1) << A1_SRC1_TYPE_SHIFT) | \
420 (REG_NR(operand1) << A1_SRC1_NR_SHIFT) | \
421 i915_get_hardware_channel_val(REG_X(operand1), \
424 i915_get_hardware_channel_val(REG_Y(operand1), \
427 OUT_BATCH(i915_get_hardware_channel_val(REG_Z(operand1), \
430 i915_get_hardware_channel_val(REG_W(operand1), \
450 #define _i915_fs_arith(cmd, dest_reg, operand0, operand1, operand2) do {\
472 (REG_TYPE(operand1) << A1_SRC1_TYPE_SHIFT) | \
473 (REG_NR(operand1) << A1_SRC1_NR_SHIFT) | \
474 i915_get_hardware_channel_val(REG_X(operand1), \
477 i915_get_hardware_channel_val(REG_Y(operand1), \
480 OUT_BATCH(i915_get_hardware_channel_val(REG_Z(operand1), \
483 i915_get_hardware_channel_val(REG_W(operand1), \
522 /** Add operand0 and operand1 and put the result in dest_reg */
523 #define i915_fs_add(dest_reg, operand0, operand1) \
525 operand0, operand1, \
528 /** Multiply operand0 and operand1 and put the result in dest_reg */
529 #define i915_fs_mul(dest_reg, operand0, operand1) \
531 operand0, operand1, \
550 /** Puts the minimum of operand0 and operand1 in dest_reg */
551 #define i915_fs_min(dest_reg, operand0, operand1) \
553 operand0, operand1, \
556 /** Puts the maximum of operand0 and operand1 in dest_reg */
557 #define i915_fs_max(dest_reg, operand0, operand1) \
559 operand0, operand1, \
562 #define i915_fs_cmp(dest_reg, operand0, operand1, operand2) \
563 i915_fs_arith (CMP, dest_reg, operand0, operand1, operand2)
565 /** Perform operand0 * operand1 + operand2 and put the result in dest_reg */
585 * Perform a 3-component dot-product of operand0 and operand1 and put the