Lines Matching defs:swizzle

237    reg_as_src.swizzle = brw_swizzle_for_size(num_components);
295 return swizzle(src_reg(dst), BRW_SWIZZLE_XXXX);
312 * two SIMD8 registers in SIMD4x2 execution. Finally, return a swizzle
323 return swizzle(src_reg(retype(tmp, BRW_REGISTER_TYPE_DF)), BRW_SWIZZLE_XXXX);
411 src.swizzle = BRW_SWZ_COMP_INPUT(nir_intrinsic_component(instr));
533 read_result.swizzle = brw_swizzle_for_size(instr->num_components);
572 * it isn't, we have to use a swizzle to shift things around. They
576 * The swizzle also works in the indirect case as the generator adds
577 * the swizzle to the offset for us.
588 src.swizzle = brw_swizzle_for_size(instr->num_components);
594 src.swizzle += BRW_SWIZZLE4(shift, shift, shift, shift);
695 packed_consts.swizzle = brw_swizzle_for_size(instr->num_components);
699 packed_consts.swizzle +=
769 brw_swizzle_for_nir_swizzle(uint8_t swizzle[4])
771 return BRW_SWIZZLE4(swizzle[0], swizzle[1], swizzle[2], swizzle[3]);
817 brw_swizzle_for_nir_swizzle(cmp_instr->src[i].swizzle);
818 op[i].swizzle = brw_compose_swizzle(size_swizzle, base_swizzle);
969 instr->src[idx].swizzle[i]);
971 instr->src[idx].swizzle[i])) {
997 instr->src[idx].swizzle[i]);
1133 op[i].swizzle = brw_swizzle_for_nir_swizzle(instr->src[i].swizzle);
1367 tmp.swizzle =
1496 emit(CMP(dst_null_d(), swizzle(op[0], swiz), swizzle(op[1], swiz),
1515 emit(CMP(dst_null_d(), swizzle(op[0], swiz), swizzle(op[1], swiz),
1600 op[0].swizzle = BRW_SWIZZLE_YYYY;
1605 op[0].swizzle = BRW_SWIZZLE_XXXX;
1636 /* As NIR does not guarantee that we have a correct swizzle outside the
1640 * regressions in Piglit. We repeat the swizzle of the first component on the
1642 * this is not needed because the operand has already the correct swizzle.
1644 op[0].swizzle = brw_compose_swizzle(BRW_SWIZZLE_XXXX, op[0].swizzle);
2215 mcs.swizzle = BRW_SWIZZLE_XXXX;
2226 lod.swizzle = BRW_SWIZZLE4(SWIZZLE_X,SWIZZLE_X,SWIZZLE_Y,SWIZZLE_Y);
2227 lod2.swizzle = BRW_SWIZZLE4(SWIZZLE_X,SWIZZLE_X,SWIZZLE_Y,SWIZZLE_Y);
2234 lod.swizzle = BRW_SWIZZLE_ZZZZ;
2235 lod2.swizzle = BRW_SWIZZLE_ZZZZ;
2284 swizzled.swizzle = BRW_SWIZZLE4(SWIZZLE_W, SWIZZLE_W,
2370 /* Resolve swizzle in src */
2371 if (src.swizzle != BRW_SWIZZLE_XYZW) {
2383 swizzle(byte_offset(src, REG_SIZE), BRW_SWIZZLE_XYXY));
2388 swizzle(src, BRW_SWIZZLE_ZWZW));