Home | History | Annotate | Download | only in nv30

Lines Matching refs:swz

190 swizzle(const struct nv30_texfmt *fmt, unsigned cmp, unsigned swz)
192 uint32_t data = fmt->swz[swz].src << 8;
193 if (swz <= PIPE_SWIZZLE_ALPHA)
194 data |= fmt->swz[swz].cmp;
196 data |= fmt->swz[cmp].cmp;
240 so->swz = fmt->swizzle;
241 so->swz |= swizzle(fmt, 3, tmpl->swizzle_a);
242 so->swz |= swizzle(fmt, 0, tmpl->swizzle_r) << 2;
243 so->swz |= swizzle(fmt, 1, tmpl->swizzle_g) << 4;
244 so->swz |= swizzle(fmt, 2, tmpl->swizzle_b) << 6;
277 so->swz |= mt->uniform_pitch << NV30_3D_TEX_SWIZZLE_RECT_PITCH__SHIFT;