Mesa (master): radeon: Remove set-but-unused log2depth variable.

Eric Anholt anholt at kemper.freedesktop.org
Tue Aug 2 13:59:48 PDT 2011


Module: Mesa
Branch: master
Commit: 25fffa9364baef76a7e7e875be1fb3c4f10aadfd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=25fffa9364baef76a7e7e875be1fb3c4f10aadfd

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Aug  2 13:39:43 2011 -0700

radeon: Remove set-but-unused log2depth variable.

r100 doesn't support 3D GL_EXT_texture3D.

---

 src/mesa/drivers/dri/radeon/radeon_texstate.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/radeon/radeon_texstate.c b/src/mesa/drivers/dri/radeon/radeon_texstate.c
index 9ba98e3..3abaa15 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texstate.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texstate.c
@@ -1018,7 +1018,7 @@ static GLboolean radeon_validate_texgen( struct gl_context *ctx, GLuint unit )
 static GLboolean setup_hardware_state(r100ContextPtr rmesa, radeonTexObj *t, int unit)
 {
    const struct gl_texture_image *firstImage;
-   GLint log2Width, log2Height, log2Depth, texelBytes;
+   GLint log2Width, log2Height, texelBytes;
 
    if ( t->bo ) {
 	return GL_TRUE;
@@ -1033,7 +1033,6 @@ static GLboolean setup_hardware_state(r100ContextPtr rmesa, radeonTexObj *t, int
 
    log2Width  = firstImage->WidthLog2;
    log2Height = firstImage->HeightLog2;
-   log2Depth  = firstImage->DepthLog2;
    texelBytes = _mesa_get_format_bytes(firstImage->TexFormat);
 
    if (!t->image_override) {



More information about the mesa-commit mailing list