intel: Drop unused first/lastlevel args to miptree_create_for_region.

We're always making a single-level, 0-baselevel miptree.
This commit is contained in:
Eric Anholt
2011-01-05 16:40:56 -08:00
parent f84573d039
commit 01b70c0628
3 changed files with 3 additions and 8 deletions
@@ -157,8 +157,6 @@ struct intel_mipmap_tree *
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
GLenum internal_format,
GLuint first_level,
GLuint last_level,
struct intel_region *region,
GLuint depth0,
GLuint compress_byte)
@@ -166,7 +164,7 @@ intel_miptree_create_for_region(struct intel_context *intel,
struct intel_mipmap_tree *mt;
mt = intel_miptree_create_internal(intel, target, internal_format,
first_level, last_level,
0, 0,
region->width, region->height, 1,
region->cpp, compress_byte,
I915_TILING_NONE);
@@ -137,8 +137,6 @@ struct intel_mipmap_tree *
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
GLenum internal_format,
GLuint first_level,
GLuint last_level,
struct intel_region *region,
GLuint depth0,
GLuint compress_byte);
+2 -3
View File
@@ -711,8 +711,7 @@ intelSetTexBuffer2(__DRIcontext *pDRICtx, GLint target,
}
mt = intel_miptree_create_for_region(intel, target,
internalFormat,
0, 0, rb->region, 1, 0);
internalFormat, rb->region, 1, 0);
if (mt == NULL)
return;
@@ -777,7 +776,7 @@ intel_image_target_texture_2d(struct gl_context *ctx, GLenum target,
mt = intel_miptree_create_for_region(intel, target,
image->internal_format,
0, 0, image->region, 1, 0);
image->region, 1, 0);
if (mt == NULL)
return;