intel: Silence "warning: unused parameter ‘depth0’"

The depth0 parameter was not used in intel_miptree_create_for_region,
so remove it.  All of the places that call this function, pass 1 for
that parameter, and the place where it looks like it should have been
used (the call to intel_miptree_create_internal) also had 1 hard
coded.

Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Ian Romanick 2011-08-26 10:15:47 -07:00
parent bd817215c8
commit 6f23d9b637
3 changed files with 4 additions and 7 deletions

View File

@ -161,8 +161,7 @@ struct intel_mipmap_tree *
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
gl_format format,
struct intel_region *region,
GLuint depth0)
struct intel_region *region)
{
struct intel_mipmap_tree *mt;

View File

@ -148,8 +148,7 @@ struct intel_mipmap_tree *
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
gl_format format,
struct intel_region *region,
GLuint depth0);
struct intel_region *region);
int intel_miptree_pitch_align (struct intel_context *intel,
struct intel_mipmap_tree *mt,

View File

@ -790,8 +790,7 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
texFormat = MESA_FORMAT_ARGB8888;
}
mt = intel_miptree_create_for_region(intel, target, texFormat,
rb->region, 1);
mt = intel_miptree_create_for_region(intel, target, texFormat, rb->region);
if (mt == NULL)
return;
@ -853,7 +852,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target,
return;
mt = intel_miptree_create_for_region(intel, target, image->format,
image->region, 1);
image->region);
if (mt == NULL)
return;