summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r200
diff options
context:
space:
mode:
authorMathias Fröhlich <[email protected]>2016-05-22 14:10:19 +0200
committerMathias Fröhlich <[email protected]>2016-06-16 05:50:52 +0200
commit8e01fd63965e0c7ab0854e0a899d6138deca5b07 (patch)
tree713f9c54a75f81bfd25fef382b654e9e50ef0bff /src/mesa/drivers/dri/r200
parentda79d76503c778ad4835bea077a76ad1a0691a1c (diff)
r200: convert r200 to use CoordsReplaceBits.
Switch over to use the CoordsReplaceBits bitmask. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r--src/mesa/drivers/dri/r200/r200_state.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.c
index b4acf985ee8..e2a56d5e07b 100644
--- a/src/mesa/drivers/dri/r200/r200_state.c
+++ b/src/mesa/drivers/dri/r200/r200_state.c
@@ -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;
}