Home | History | Annotate | Download | only in state_tracker

Lines Matching defs:swizzle

53  * Combine depth texture mode with "swizzle" so that depth mode swizzling
54 * takes place before texture swizzling, and return the resulting swizzle.
55 * If the format is not a depth format, return "swizzle" unchanged.
58 * \param swizzle Texture swizzle, a bitmask computed using MAKE_SWIZZLE4.
62 apply_depthmode(enum pipe_format format, GLuint swizzle, GLenum depthmode)
70 desc->swizzle[0] == UTIL_FORMAT_SWIZZLE_NONE) {
72 return swizzle;
76 swiz[i] = GET_SWZ(swizzle, i);
118 * Return TRUE if the swizzling described by "swizzle" and
123 * \param swizzle Texture swizzle, a bitmask computed using MAKE_SWIZZLE4.
128 GLuint swizzle, GLenum depthmode)
130 swizzle = apply_depthmode(sv->texture->format, swizzle, depthmode);
132 if ((sv->swizzle_r != GET_SWZ(swizzle, 0)) ||
133 (sv->swizzle_g != GET_SWZ(swizzle, 1)) ||
134 (sv->swizzle_b != GET_SWZ(swizzle, 2)) ||
135 (sv->swizzle_a != GET_SWZ(swizzle, 3)))
148 GLuint swizzle = apply_depthmode(stObj->pt->format,
157 if (swizzle != SWIZZLE_NOOP) {
158 templ.swizzle_r = GET_SWZ(swizzle, 0);
159 templ.swizzle_g = GET_SWZ(swizzle, 1);
160 templ.swizzle_b = GET_SWZ(swizzle, 2);
161 templ.swizzle_a = GET_SWZ(swizzle, 3);