mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 00:50:36 +02:00
casting, type changes to silence warnings
This commit is contained in:
parent
15193e78c9
commit
7941474a21
2 changed files with 5 additions and 5 deletions
|
|
@ -132,10 +132,10 @@ static void r200UpdateFSArith( GLcontext *ctx )
|
|||
R200_STATECHANGE( rmesa, afs[1] );
|
||||
|
||||
if (shader->NumPasses < 2) {
|
||||
afs_cmd = rmesa->hw.afs[1].cmd;
|
||||
afs_cmd = (GLuint *) rmesa->hw.afs[1].cmd;
|
||||
}
|
||||
else {
|
||||
afs_cmd = rmesa->hw.afs[0].cmd;
|
||||
afs_cmd = (GLuint *) rmesa->hw.afs[0].cmd;
|
||||
}
|
||||
for (pass = 0; pass < shader->NumPasses; pass++) {
|
||||
GLuint opnum = 0;
|
||||
|
|
@ -317,7 +317,7 @@ static void r200UpdateFSArith( GLcontext *ctx )
|
|||
SET_INST(opnum, 1), SET_INST_2(opnum, 1));*/
|
||||
opnum++;
|
||||
}
|
||||
afs_cmd = rmesa->hw.afs[1].cmd;
|
||||
afs_cmd = (GLuint *) rmesa->hw.afs[1].cmd;
|
||||
}
|
||||
rmesa->afs_loaded = ctx->ATIFragmentShader.Current;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1178,7 +1178,7 @@ static void import_tex_obj_state( r200ContextPtr rmesa,
|
|||
r200TexObjPtr texobj )
|
||||
{
|
||||
/* do not use RADEON_DB_STATE to avoid stale texture caches */
|
||||
GLuint *cmd = &rmesa->hw.tex[unit].cmd[TEX_CMD_0];
|
||||
int *cmd = &rmesa->hw.tex[unit].cmd[TEX_CMD_0];
|
||||
|
||||
R200_STATECHANGE( rmesa, tex[unit] );
|
||||
|
||||
|
|
@ -1199,7 +1199,7 @@ static void import_tex_obj_state( r200ContextPtr rmesa,
|
|||
}
|
||||
|
||||
if (texobj->base.tObj->Target == GL_TEXTURE_CUBE_MAP) {
|
||||
GLuint *cube_cmd = &rmesa->hw.cube[unit].cmd[CUBE_CMD_0];
|
||||
int *cube_cmd = &rmesa->hw.cube[unit].cmd[CUBE_CMD_0];
|
||||
GLuint bytesPerFace = texobj->base.totalSize / 6;
|
||||
ASSERT(texobj->base.totalSize % 6 == 0);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue