intel: Drop unused first/lastlevel args to miptree_create_for_region.
authorEric Anholt <eric@anholt.net>
Thu, 6 Jan 2011 00:40:56 +0000 (16:40 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 6 Jan 2011 02:11:31 +0000 (18:11 -0800)
We're always making a single-level, 0-baselevel miptree.

src/mesa/drivers/dri/intel/intel_mipmap_tree.c
src/mesa/drivers/dri/intel/intel_mipmap_tree.h
src/mesa/drivers/dri/intel/intel_tex_image.c

index 9c4e5c5ee8c9288108d22c63208ea08156cb1655..a3409274fb7f4b418a7a5a771a57c2770df1927e 100644 (file)
@@ -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);
index 21db2f4d3b3c191a028cf6536491b5e72d9c2316..760a8bce60144fc9f69f11983909ccedfc91b67d 100644 (file)
@@ -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);
index 41cdbfd2cbdf42e4b2eb408cefb5834f9c2e8d41..918740a773a6a8ef502abd7fcdde9dbb2daaba8b 100644 (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;