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:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user