Lines Matching refs:Unit
377 attr->Texture[i] = ctx->Texture.Unit[i].Enabled;
378 attr->TexGen[i] = ctx->Texture.Unit[i].TexGenEnabled;
522 ctx->Texture.Unit[u].CurrentTex[tex]);
530 ctx->Texture.Unit[u].CurrentTex[tex]);
716 /* texture unit enables */
721 if (ctx->Texture.Unit[i].Enabled != enabled) {
737 if (ctx->Texture.Unit[i].TexGenEnabled != genEnabled) {
761 const struct gl_texture_unit *unit = &texstate->Texture.Unit[u];
765 _mesa_set_enable(ctx, GL_TEXTURE_1D, !!(unit->Enabled & TEXTURE_1D_BIT));
766 _mesa_set_enable(ctx, GL_TEXTURE_2D, !!(unit->Enabled & TEXTURE_2D_BIT));
767 _mesa_set_enable(ctx, GL_TEXTURE_3D, !!(unit->Enabled & TEXTURE_3D_BIT));
770 !!(unit->Enabled & TEXTURE_CUBE_BIT));
774 !!(unit->Enabled & TEXTURE_RECT_BIT));
776 _mesa_TexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, unit->EnvMode);
777 _mesa_TexEnvfv(GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, unit->EnvColor);
778 _mesa_TexGeni(GL_S, GL_TEXTURE_GEN_MODE, unit->GenS.Mode);
779 _mesa_TexGeni(GL_T, GL_TEXTURE_GEN_MODE, unit->GenT.Mode);
780 _mesa_TexGeni(GL_R, GL_TEXTURE_GEN_MODE, unit->GenR.Mode);
781 _mesa_TexGeni(GL_Q, GL_TEXTURE_GEN_MODE, unit->GenQ.Mode);
782 _mesa_TexGenfv(GL_S, GL_OBJECT_PLANE, unit->GenS.ObjectPlane);
783 _mesa_TexGenfv(GL_T, GL_OBJECT_PLANE, unit->GenT.ObjectPlane);
784 _mesa_TexGenfv(GL_R, GL_OBJECT_PLANE, unit->GenR.ObjectPlane);
785 _mesa_TexGenfv(GL_Q, GL_OBJECT_PLANE, unit->GenQ.ObjectPlane);
788 struct gl_texture_unit *destUnit = &ctx->Texture.Unit[u];
789 COPY_4FV(destUnit->GenS.EyePlane, unit->GenS.EyePlane);
790 COPY_4FV(destUnit->GenT.EyePlane, unit->GenT.EyePlane);
791 COPY_4FV(destUnit->GenR.EyePlane, unit->GenR.EyePlane);
792 COPY_4FV(destUnit->GenQ.EyePlane, unit->GenQ.EyePlane);
794 ctx->Driver.TexGen(ctx, GL_S, GL_EYE_PLANE, unit->GenS.EyePlane);
795 ctx->Driver.TexGen(ctx, GL_T, GL_EYE_PLANE, unit->GenT.EyePlane);
796 ctx->Driver.TexGen(ctx, GL_R, GL_EYE_PLANE, unit->GenR.EyePlane);
797 ctx->Driver.TexGen(ctx, GL_Q, GL_EYE_PLANE, unit->GenQ.EyePlane);
800 _mesa_set_enable(ctx, GL_TEXTURE_GEN_S, !!(unit->TexGenEnabled & S_BIT));
801 _mesa_set_enable(ctx, GL_TEXTURE_GEN_T, !!(unit->TexGenEnabled & T_BIT));
802 _mesa_set_enable(ctx, GL_TEXTURE_GEN_R, !!(unit->TexGenEnabled & R_BIT));
803 _mesa_set_enable(ctx, GL_TEXTURE_GEN_Q, !!(unit->TexGenEnabled & Q_BIT));
805 unit->LodBias);
807 unit->Combine.ModeRGB);
809 unit->Combine.ModeA);
815 unit->Combine.SourceRGB[i]);
817 unit->Combine.SourceA[i]);
819 unit->Combine.OperandRGB[i]);
821 unit->Combine.OperandA[i]);
825 1 << unit->Combine.ScaleShiftRGB);
827 1 << unit->Combine.ScaleShiftA);