Lines Matching refs:src
402 * Copy any live channel from \p src to the first channel of the result.
405 emit_uniformize(const src_reg &src) const
416 const dst_reg dst = vgrf(src.type);
419 ubld.emit(SHADER_OPCODE_BROADCAST, dst, src, component(chan_index, 0));
425 move_to_vgrf(const src_reg &src, unsigned num_components) const
429 src_comps[i] = offset(src, dispatch_width(), i);
431 const dst_reg dst = vgrf(src.type, num_components);
767 LOAD_PAYLOAD(const dst_reg &dst, const src_reg *src,
770 instruction *inst = emit(SHADER_OPCODE_LOAD_PAYLOAD, dst, src, sources);
774 inst->size_written += dispatch_width() * type_sz(src[i].type) *
800 fix_unsigned_negate(const src_reg &src) const
802 if (src.type == BRW_REGISTER_TYPE_UD &&
803 src.negate) {
805 MOV(temp, src);
808 return src;
817 fix_3src_operand(const src_reg &src) const
819 switch (src.file) {
822 if (src.vstride != BRW_VERTICAL_STRIDE_8 ||
823 src.width != BRW_WIDTH_8 ||
824 src.hstride != BRW_HORIZONTAL_STRIDE_1)
831 return src;
836 dst_reg expanded = vgrf(src.type);
837 MOV(expanded, src);
846 fix_math_operand(const src_reg &src) const
860 (src.file == IMM || src.file == UNIFORM ||
861 src.abs || src.negate)) ||
862 (shader->devinfo->ver == 7 && src.file == IMM)) {
863 const dst_reg tmp = vgrf(src.type);
864 MOV(tmp, src);
867 return src;