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>
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;
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,
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;
return;
mt = intel_miptree_create_for_region(intel, target, image->format,
- image->region, 1);
+ image->region);
if (mt == NULL)
return;