mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
r200: convert r200 to use CoordsReplaceBits.
Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Signed-off-by: Mathias Fröhlich <Mathias.Froehlich@web.de>
This commit is contained in:
parent
da79d76503
commit
8e01fd6396
1 changed files with 2 additions and 5 deletions
|
|
@ -1851,11 +1851,8 @@ static void r200Enable( struct gl_context *ctx, GLenum cap, GLboolean state )
|
|||
case GL_POINT_SPRITE_ARB:
|
||||
R200_STATECHANGE( rmesa, spr );
|
||||
if ( state ) {
|
||||
int i;
|
||||
for (i = 0; i < 6; i++) {
|
||||
rmesa->hw.spr.cmd[SPR_POINT_SPRITE_CNTL] |=
|
||||
ctx->Point.CoordReplace[i] << (R200_PS_GEN_TEX_0_SHIFT + i);
|
||||
}
|
||||
rmesa->hw.spr.cmd[SPR_POINT_SPRITE_CNTL] |= R200_PS_GEN_TEX_MASK &
|
||||
(ctx->Point.CoordReplaceBits << R200_PS_GEN_TEX_0_SHIFT);
|
||||
} else {
|
||||
rmesa->hw.spr.cmd[SPR_POINT_SPRITE_CNTL] &= ~R200_PS_GEN_TEX_MASK;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue