Lines Matching refs:texUnit
262 const struct gl_texture_unit *texUnit = &ctx->Texture.Unit[unit];
278 if (texUnit->TexGenEnabled & S_BIT) {
279 switch (texUnit->GenS.Mode) {
281 texcoord[0] = DOT4(vObj, texUnit->GenS.ObjectPlane);
284 texcoord[0] = DOT4(vEye, texUnit->GenS.EyePlane);
301 if (texUnit->TexGenEnabled & T_BIT) {
302 switch (texUnit->GenT.Mode) {
304 texcoord[1] = DOT4(vObj, texUnit->GenT.ObjectPlane);
307 texcoord[1] = DOT4(vEye, texUnit->GenT.EyePlane);
324 if (texUnit->TexGenEnabled & R_BIT) {
325 switch (texUnit->GenR.Mode) {
327 texcoord[2] = DOT4(vObj, texUnit->GenR.ObjectPlane);
330 texcoord[2] = DOT4(vEye, texUnit->GenR.EyePlane);
344 if (texUnit->TexGenEnabled & Q_BIT) {
345 switch (texUnit->GenQ.Mode) {
347 texcoord[3] = DOT4(vObj, texUnit->GenQ.ObjectPlane);
350 texcoord[3] = DOT4(vEye, texUnit->GenQ.EyePlane);