Lines Matching refs:swz

38 unsigned int rc_swizzle_to_writemask(unsigned int swz)  in rc_swizzle_to_writemask()  argument
44 mask |= 1 << GET_SWZ(swz, i); in rc_swizzle_to_writemask()
51 rc_swizzle get_swz(unsigned int swz, rc_swizzle idx) in get_swz() argument
55 return GET_SWZ(swz, idx); in get_swz()
89 unsigned int combine_swizzles(unsigned int src, unsigned int swz) in combine_swizzles() argument
93 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_X)); in combine_swizzles()
94 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Y)) << 3; in combine_swizzles()
95 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_Z)) << 6; in combine_swizzles()
96 ret |= get_swz(src, GET_SWZ(swz, RC_SWIZZLE_W)) << 9; in combine_swizzles()
120 unsigned swz = GET_SWZ(swizzle, chan); in swizzle_mask() local
121 if (swz < 4) in swizzle_mask()
122 ret |= GET_BIT(mask, swz) << chan; in swizzle_mask()
235 unsigned int swz = GET_SWZ(conversion_swizzle, i); in rc_normal_rewrite_writemask() local
236 if (swz > 3) in rc_normal_rewrite_writemask()
238 SET_SWZ(sub->TexSwizzle, swz, i); in rc_normal_rewrite_writemask()
269 unsigned int swz = GET_SWZ(swizzle, chan); in rc_rewrite_swizzle() local
271 if (swz > 3) { in rc_rewrite_swizzle()
272 SET_SWZ(out_swizzle, chan, swz); in rc_rewrite_swizzle()
274 new_swz = GET_SWZ(conversion_swizzle, swz); in rc_rewrite_swizzle()
278 SET_SWZ(out_swizzle, chan, swz); in rc_rewrite_swizzle()
295 rc_swizzle swz = GET_SWZ(swizzle, i); in lmul_swizzle() local
296 if (swz < 4) { in lmul_swizzle()
297 tmp.Swizzle |= GET_SWZ(srcreg.Swizzle, swz) << (i*3); in lmul_swizzle()
298 tmp.Negate |= GET_BIT(srcreg.Negate, swz) << i; in lmul_swizzle()
300 tmp.Swizzle |= swz << (i*3); in lmul_swizzle()
333 unsigned int swz = RC_SWIZZLE_UNUSED; in rc_source_type_swz() local
337 swz = GET_SWZ(swizzle, chan); in rc_source_type_swz()
338 if (swz == RC_SWIZZLE_W) { in rc_source_type_swz()
340 } else if (swz == RC_SWIZZLE_X || swz == RC_SWIZZLE_Y in rc_source_type_swz()
341 || swz == RC_SWIZZLE_Z) { in rc_source_type_swz()
725 int swz = GET_SWZ(swizzle, chan); in rc_get_constant_value() local
726 if(swz >= 4 || index >= c->Program.Constants.Count ){ in rc_get_constant_value()
734 c->Program.Constants.Constants[index].u.Immediate[swz]; in rc_get_constant_value()
744 unsigned int swz, chan; in rc_get_scalar_src_swz() local
746 swz = GET_SWZ(swizzle, chan); in rc_get_scalar_src_swz()
747 if (swz != RC_SWIZZLE_UNUSED) { in rc_get_scalar_src_swz()
751 assert(swz != RC_SWIZZLE_UNUSED); in rc_get_scalar_src_swz()
752 return swz; in rc_get_scalar_src_swz()