Home | History | Annotate | Download | only in compiler

Lines Matching refs:Swizzle

64  * @return An initialized swizzle that has all of the unused channels set to
115 /* Reorder mask bits according to swizzle. */
116 unsigned swizzle_mask(unsigned swizzle, unsigned mask)
120 unsigned swz = GET_SWZ(swizzle, chan);
145 * @return A swizzle the results from converting old_swizzle using
203 sub->Arg[i].Swizzle =
204 rc_adjust_channels(sub->Arg[i].Swizzle,
215 src->Swizzle = rc_adjust_channels(src->Swizzle, *conversion_swizzle);
251 * This function replaces each value 'swz' in swizzle with the value of
253 * in swizzle to Y, then conversion_swizzle should be Y___ (0xff9). If you want
254 * to change all the Y's in swizzle to X, then conversion_swizzle should be
256 * conversion swizzle should be YX__ (0xfc1).
257 * @param swizzle The swizzle to change
258 * @param conversion_swizzle Describes the conversion to perform on the swizzle
259 * @return A converted swizzle
262 unsigned int swizzle,
266 unsigned int out_swizzle = swizzle;
269 unsigned int swz = GET_SWZ(swizzle, chan);
286 * Left multiplication of a register with a swizzle
288 struct rc_src_register lmul_swizzle(unsigned int swizzle, struct rc_src_register srcreg)
292 tmp.Swizzle = 0;
295 rc_swizzle swz = GET_SWZ(swizzle, i);
297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3);
300 tmp.Swizzle |= swz << (i*3);
309 reg->Swizzle = RC_SWIZZLE_XYZW;
327 * @return A bit mask specifying whether this swizzle will select from an RGB
330 unsigned int rc_source_type_swz(unsigned int swizzle)
337 swz = GET_SWZ(swizzle, chan);
408 rc_source_type_swz(src->Swizzle));
451 src_type0 = rc_source_type_swz(presub_src0->Swizzle);
458 src_type1 = rc_source_type_swz(presub_src1->Swizzle);
564 || src_type != rc_source_type_swz(sub->Arg[i].Swizzle)) {
567 readmask |= rc_swizzle_to_writemask(sub->Arg[i].Swizzle);
679 * @return A conversion swizzle for converting from old_mask->new_mask
720 unsigned int swizzle,
725 int swz = GET_SWZ(swizzle, chan);
739 * channel in the swizzle. This is only useful for scalar instructions that are
740 * known to use only one channel of the swizzle.
742 unsigned int rc_get_scalar_src_swz(unsigned int swizzle)
746 swz = GET_SWZ(swizzle, chan);