Lines Matching defs:swizzle
61 /* We use the swizzle in our format table to determine swizzle configuration
68 * colors so we need to fix up the swizzle manually for this case.
70 uint8_t swizzle[4];
71 if (v3dv_format_swizzle_needs_reverse(format->swizzle) &&
72 v3dv_format_swizzle_needs_rb_swap(format->swizzle)) {
73 swizzle[0] = PIPE_SWIZZLE_W;
74 swizzle[1] = PIPE_SWIZZLE_X;
75 swizzle[2] = PIPE_SWIZZLE_Y;
76 swizzle[3] = PIPE_SWIZZLE_Z;
78 memcpy(swizzle, format->swizzle, sizeof (swizzle));
83 if (format->swizzle[i] <= 3)
84 border.ui[i] = bc_info->customBorderColor.uint32[swizzle[i]];
199 * will take priority over the texture state swizzle, so the only way to
200 * fix that is to apply a swizzle in the shader. Here we keep track of
202 * activate the texture swizzle lowering in the shader key at compile time