GLuint swaptexmatcol = (VB->TexCoordPtr[0]->size - 3);
if ((rmesa->NeedTexMatrix & 1) &&
(swaptexmatcol != (rmesa->TexMatColSwap & 1)))
- radeonUploadTexMatrix( rmesa, rmesa->tmpmat[0].m, 0, swaptexmatcol ) ;
+ radeonUploadTexMatrix( rmesa, 0, swaptexmatcol ) ;
}
component[nr++] = &rmesa->tcl.tex[0];
}
GLuint swaptexmatcol = (VB->TexCoordPtr[1]->size - 3);
if (((rmesa->NeedTexMatrix >> 1) & 1) &&
(swaptexmatcol != ((rmesa->TexMatColSwap >> 1) & 1)))
- radeonUploadTexMatrix( rmesa, rmesa->tmpmat[1].m, 1, swaptexmatcol ) ;
+ radeonUploadTexMatrix( rmesa, 1, swaptexmatcol ) ;
}
component[nr++] = &rmesa->tcl.tex[1];
}
GLuint swaptexmatcol = (VB->TexCoordPtr[0]->size - 3);
if ((rmesa->NeedTexMatrix & 1) &&
(swaptexmatcol != (rmesa->TexMatColSwap & 1)))
- radeonUploadTexMatrix( rmesa, rmesa->tmpmat[0].m, 0, swaptexmatcol ) ;
+ radeonUploadTexMatrix( rmesa, 0, swaptexmatcol ) ;
}
}
GLuint swaptexmatcol = (VB->TexCoordPtr[1]->size - 3);
if (((rmesa->NeedTexMatrix >> 1) & 1) &&
(swaptexmatcol != ((rmesa->TexMatColSwap >> 1) & 1)))
- radeonUploadTexMatrix( rmesa, rmesa->tmpmat[1].m, 1, swaptexmatcol ) ;
+ radeonUploadTexMatrix( rmesa, 1, swaptexmatcol ) ;
}
}
}}
-void radeonUploadTexMatrix( radeonContextPtr rmesa, GLfloat *src,
+void radeonUploadTexMatrix( radeonContextPtr rmesa,
int unit, GLboolean swapcols )
{
/* Here's how this works: on r100, only 3 tex coords can be submitted, so the
float *dest = ((float *)RADEON_DB_STATE( mat[idx] )) + MAT_ELT_0;
int i;
struct gl_texture_unit tUnit = rmesa->glCtx->Texture.Unit[unit];
+ GLfloat *src = rmesa->tmpmat[unit].m;
rmesa->TexMatColSwap &= ~(1 << unit);
if ((tUnit._ReallyEnabled & (TEXTURE_3D_BIT | TEXTURE_CUBE_BIT)) == 0) {
}
if (needMatrix) {
rmesa->NeedTexMatrix |= 1 << unit;
- radeonUploadTexMatrix( rmesa, rmesa->tmpmat[unit].m, unit,
+ radeonUploadTexMatrix( rmesa, unit,
!ctx->Texture.Unit[unit].TexGenEnabled );
}
}
extern void radeonUpdateViewportOffset( GLcontext *ctx );
extern void radeonUpdateWindow( GLcontext *ctx );
extern void radeonUpdateDrawBuffer( GLcontext *ctx );
-extern void radeonUploadTexMatrix( radeonContextPtr rmesa, GLfloat *src,
- int unit, GLboolean swapcols );
+extern void radeonUploadTexMatrix( radeonContextPtr rmesa,
+ int unit, GLboolean swapcols );
extern void radeonValidateState( GLcontext *ctx );