Lines Matching refs:Unit
1823 int unit, GLboolean swapcols )
1845 int idx = TEXMAT_0 + unit;
1848 struct gl_texture_unit tUnit = rmesa->radeon.glCtx->Texture.Unit[unit];
1849 GLfloat *src = rmesa->tmpmat[unit].m;
1851 rmesa->TexMatColSwap &= ~(1 << unit);
1854 rmesa->TexMatColSwap |= 1 << unit;
1931 int unit;
1936 for (unit = 0 ; unit < ctx->Const.MaxTextureUnits; unit++) {
1937 if (ctx->Texture.Unit[unit]._ReallyEnabled) {
1939 if (ctx->TextureMatrixStack[unit].Top->type != MATRIX_IDENTITY) {
1942 RADEON_TEXMAT_0_ENABLE) << unit;
1944 if (rmesa->TexGenEnabled & (RADEON_TEXMAT_0_ENABLE << unit)) {
1948 _math_matrix_mul_matrix( &rmesa->tmpmat[unit],
1949 ctx->TextureMatrixStack[unit].Top,
1950 &rmesa->TexGenMatrix[unit] );
1953 _math_matrix_copy( &rmesa->tmpmat[unit],
1954 ctx->TextureMatrixStack[unit].Top );
1957 else if (rmesa->TexGenEnabled & (RADEON_TEXMAT_0_ENABLE << unit)) {
1958 _math_matrix_copy( &rmesa->tmpmat[unit], &rmesa->TexGenMatrix[unit] );
1962 rmesa->NeedTexMatrix |= 1 << unit;
1963 radeonUploadTexMatrix( rmesa, unit,
1964 !ctx->Texture.Unit[unit].TexGenEnabled );
2018 if (!ctx->Texture.Unit[i]._ReallyEnabled)
2021 t = rmesa->state.texture.unit[i].texobj;