aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/intel/intel_tex_validate.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-06-09 10:23:17 -0700
committerEric Anholt <[email protected]>2011-06-14 11:17:39 -0700
commitf94fef83db10f0c9327bd3dd43510ad31c94d82a (patch)
treef2c4a6db641e1426ef5d137c922838796a4c2e9c /src/mesa/drivers/dri/intel/intel_tex_validate.c
parent6dcc398ac0837025cf60b4d6a056fa3b0a16466f (diff)
intel: Drop the cpp argument to intel_miptree_create().
Diffstat (limited to 'src/mesa/drivers/dri/intel/intel_tex_validate.c')
-rw-r--r--src/mesa/drivers/dri/intel/intel_tex_validate.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_tex_validate.c b/src/mesa/drivers/dri/intel/intel_tex_validate.c
index 84facdbf27e..7135a6276fe 100644
--- a/src/mesa/drivers/dri/intel/intel_tex_validate.c
+++ b/src/mesa/drivers/dri/intel/intel_tex_validate.c
@@ -77,7 +77,6 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit)
struct gl_texture_object *tObj = intel->ctx.Texture.Unit[unit]._Current;
struct intel_texture_object *intelObj = intel_texture_object(tObj);
struct gl_sampler_object *sampler = _mesa_get_samplerobj(ctx, unit);
- int cpp;
GLuint face, i;
GLuint nr_faces = 0;
struct intel_texture_image *firstImage;
@@ -100,12 +99,6 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit)
return GL_FALSE;
}
- if (_mesa_is_format_compressed(firstImage->base.TexFormat)) {
- cpp = intel_compressed_num_bytes(firstImage->base.TexFormat);
- }
- else
- cpp = _mesa_get_format_bytes(firstImage->base.TexFormat);
-
/* Check tree can hold all active levels. Check tree matches
* target, imageFormat, etc.
*
@@ -137,7 +130,6 @@ intel_finalize_mipmap_tree(struct intel_context *intel, GLuint unit)
firstImage->base.Width,
firstImage->base.Height,
firstImage->base.Depth,
- cpp,
GL_TRUE);
if (!intelObj->mt)
return GL_FALSE;