Lines Matching refs:comp
188 comp_to_swizzle(GLenum comp)
190 switch (comp) {
210 set_swizzle_component(GLuint *swizzle, GLuint comp, GLuint swz)
212 ASSERT(comp < 4);
215 GLuint mask = 0x7 << (3 * comp);
216 GLuint s = (*swizzle & ~mask) | (swz << (3 * comp));
449 const GLuint comp = pname - GL_TEXTURE_SWIZZLE_R_EXT;
456 ASSERT(comp < 4);
459 texObj->Swizzle[comp] = params[0];
460 set_swizzle_component(&texObj->_Swizzle, comp, swz);
468 GLuint comp;
470 for (comp = 0; comp < 4; comp++) {
471 const GLint swz = comp_to_swizzle(params[comp]);
473 texObj->Swizzle[comp] = params[comp];
474 set_swizzle_component(&texObj->_Swizzle, comp, swz);
478 "glTexParameter(swizzle 0x%x)", params[comp]);
1431 GLuint comp;
1432 for (comp = 0; comp < 4; comp++) {
1433 params[comp] = (GLfloat) obj->Swizzle[comp];