intel_miptree_create_internal(struct intel_context *intel,
GLenum target,
gl_format format,
- GLenum internal_format,
GLuint first_level,
GLuint last_level,
GLuint width0,
DBG("%s target %s format %s level %d..%d <-- %p\n", __FUNCTION__,
_mesa_lookup_enum_by_nr(target),
- _mesa_lookup_enum_by_nr(internal_format),
+ _mesa_get_format_name(format),
first_level, last_level, mt);
mt->target = target_to_target(target);
mt->format = format;
- mt->internal_format = internal_format;
mt->first_level = first_level;
mt->last_level = last_level;
mt->width0 = width0;
GLenum target,
gl_format format,
GLenum base_format,
- GLenum internal_format,
GLuint first_level,
GLuint last_level,
GLuint width0,
tiling = I915_TILING_X;
}
- mt = intel_miptree_create_internal(intel, target, format, internal_format,
+ mt = intel_miptree_create_internal(intel, target, format,
first_level, last_level, width0,
height0, depth0, cpp, compress_byte,
tiling);
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
gl_format format,
- GLenum internal_format,
struct intel_region *region,
GLuint depth0,
GLuint compress_byte)
{
struct intel_mipmap_tree *mt;
- mt = intel_miptree_create_internal(intel, target, format, internal_format,
+ mt = intel_miptree_create_internal(intel, target, format,
0, 0,
region->width, region->height, 1,
region->cpp, compress_byte,
intelObj->base.Target,
intelImage->base.TexFormat,
intelImage->base._BaseFormat,
- intelImage->base.InternalFormat,
firstLevel,
lastLevel,
width,
}
mt = intel_miptree_create_for_region(intel, target, texFormat,
- internalFormat, rb->region, 1, 0);
+ rb->region, 1, 0);
if (mt == NULL)
return;
return;
mt = intel_miptree_create_for_region(intel, target, image->format,
- image->internal_format,
image->region, 1, 0);
if (mt == NULL)
return;