Lines Matching refs:operand0
266 #define i915_fs_arith(op, dest_reg, operand0, operand1, operand2) \
267 _i915_fs_arith(A0_##op, dest_reg, operand0, operand1, operand2)
271 struct i915_fs_operand operand0,
288 op.ui[0] |= REG_TYPE(operand0.reg) << A0_SRC0_TYPE_SHIFT;
289 op.ui[0] |= REG_NR(operand0.reg) << A0_SRC0_NR_SHIFT;
291 op.ui[1] |= i915_get_hardware_channel_val(operand0.x) <<
293 if (operand0.x < 0)
296 op.ui[1] |= i915_get_hardware_channel_val(operand0.y) <<
298 if (operand0.y < 0)
301 op.ui[1] |= i915_get_hardware_channel_val(operand0.z) <<
303 if (operand0.z < 0)
306 op.ui[1] |= i915_get_hardware_channel_val(operand0.w) <<
308 if (operand0.w < 0)
362 /** Move operand0 to dest_reg */
363 #define i915_fs_mov(dest_reg, operand0) \
365 FS_OUT(i915_fs_arith(MOV, dest_reg, operand0, \
371 * Move the value in operand0 to the dest reg with the masking/saturation
374 #define i915_fs_mov_masked(dest_reg, dest_mask, operand0) \
378 op = i915_fs_arith(MOV, dest_reg, operand0, i915_fs_operand_none(), \
388 /** Add operand0 and operand1 and put the result in dest_reg */
389 #define i915_fs_add(dest_reg, operand0, operand1) \
391 FS_OUT(i915_fs_arith(ADD, dest_reg, operand0, operand1, \
395 /** Add operand0 and operand1 and put the result in dest_reg */
396 #define i915_fs_mul(dest_reg, operand0, operand1) \
398 FS_OUT(i915_fs_arith(MUL, dest_reg, operand0, operand1, \
403 * Perform a 3-component dot-product of operand0 and operand1 and put the
406 #define i915_fs_dp3_masked(dest_reg, dest_mask, operand0, operand1) \
410 op = i915_fs_arith(DP3, dest_reg, operand0, operand1, \