diff options
author | Ian Romanick <[email protected]> | 2004-02-06 17:39:03 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2004-02-06 17:39:03 +0000 |
commit | 07d6a983595b7ee52c8448fc579d952ce36472b8 (patch) | |
tree | ccc7d63948da1efaca6cdd00c852c9d9094f5405 /src/mesa/drivers/dri/i830 | |
parent | c71ee917e325e8b8c1591047d6e33adb4e051da8 (diff) |
Refactor "class" texture environments to be implemented in terms of
ARB_texture_env_combine state.
Diffstat (limited to 'src/mesa/drivers/dri/i830')
-rw-r--r-- | src/mesa/drivers/dri/i830/i830_texstate.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i830/i830_texstate.c b/src/mesa/drivers/dri/i830/i830_texstate.c index 8e93a5b8fef..19775db94cf 100644 --- a/src/mesa/drivers/dri/i830/i830_texstate.c +++ b/src/mesa/drivers/dri/i830/i830_texstate.c @@ -1021,14 +1021,14 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, GLuint args_RGB[3]; GLuint args_A[3]; GLuint texel_op = GetTexelOp(unit); - GLuint rgb_shift = texUnit->CombineScaleShiftRGB; - GLuint alpha_shift = texUnit->CombineScaleShiftA; + GLuint rgb_shift = texUnit->Combine.ScaleShiftRGB; + GLuint alpha_shift = texUnit->Combine.ScaleShiftA; int i; if(I830_DEBUG&DEBUG_TEXTURE) fprintf(stderr, "%s\n", __FUNCTION__); - switch(texUnit->CombineModeRGB) { + switch(texUnit->Combine.ModeRGB) { case GL_REPLACE: blendop = TEXBLENDOP_ARG1; break; @@ -1067,7 +1067,7 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, blendop |= (rgb_shift << TEXOP_SCALE_SHIFT); - switch(texUnit->CombineModeA) { + switch(texUnit->Combine.ModeA) { case GL_REPLACE: ablendop = TEXBLENDOP_ARG1; break; @@ -1090,8 +1090,8 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, return; } - if ( (texUnit->CombineModeRGB == GL_DOT3_RGBA_EXT) - || (texUnit->CombineModeRGB == GL_DOT3_RGBA) ) { + if ( (texUnit->Combine.ModeRGB == GL_DOT3_RGBA_EXT) + || (texUnit->Combine.ModeRGB == GL_DOT3_RGBA) ) { ablendop = TEXBLENDOP_DOT3; } @@ -1099,7 +1099,7 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, /* Handle RGB args */ for(i = 0; i < 3; i++) { - switch(texUnit->CombineSourceRGB[i]) { + switch(texUnit->Combine.SourceRGB[i]) { case GL_TEXTURE: args_RGB[i] = texel_op; break; @@ -1117,7 +1117,7 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, } - switch(texUnit->CombineOperandRGB[i]) { + switch(texUnit->Combine.OperandRGB[i]) { case GL_SRC_COLOR: args_RGB[i] |= 0; break; @@ -1138,7 +1138,7 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, /* Handle A args */ for(i = 0; i < 3; i++) { - switch(texUnit->CombineSourceA[i]) { + switch(texUnit->Combine.SourceA[i]) { case GL_TEXTURE: args_A[i] = texel_op; break; @@ -1156,7 +1156,7 @@ static void i830SetTexEnvCombine(i830ContextPtr imesa, } - switch(texUnit->CombineOperandA[i]) { + switch(texUnit->Combine.OperandA[i]) { case GL_SRC_ALPHA: args_A[i] |= 0; break; |