texel_bytes = _mesa_get_format_bytes(intel_image->base.TexFormat);
new_mt = intel_miptree_create(intel, image->TexObject->Target,
+ intel_image->base.TexFormat,
intel_image->base._BaseFormat,
intel_image->base.InternalFormat,
intel_image->level,
static struct intel_mipmap_tree *
intel_miptree_create_internal(struct intel_context *intel,
GLenum target,
+ gl_format format,
GLenum internal_format,
GLuint first_level,
GLuint last_level,
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;
struct intel_mipmap_tree *
intel_miptree_create(struct intel_context *intel,
GLenum target,
+ gl_format format,
GLenum base_format,
GLenum internal_format,
GLuint first_level,
tiling = I915_TILING_X;
}
- mt = intel_miptree_create_internal(intel, target, internal_format,
+ mt = intel_miptree_create_internal(intel, target, format, internal_format,
first_level, last_level, width0,
height0, depth0, cpp, compress_byte,
tiling);
struct intel_mipmap_tree *
intel_miptree_create_for_region(struct intel_context *intel,
GLenum target,
+ gl_format format,
GLenum internal_format,
struct intel_region *region,
GLuint depth0,
{
struct intel_mipmap_tree *mt;
- mt = intel_miptree_create_internal(intel, target, internal_format,
+ mt = intel_miptree_create_internal(intel, target, format, internal_format,
0, 0,
region->width, region->height, 1,
region->cpp, compress_byte,
return intel_miptree_create(intel,
intelObj->base.Target,
+ intelImage->base.TexFormat,
intelImage->base._BaseFormat,
intelImage->base.InternalFormat,
firstLevel,
texFormat = MESA_FORMAT_ARGB8888;
}
- mt = intel_miptree_create_for_region(intel, target,
+ mt = intel_miptree_create_for_region(intel, target, texFormat,
internalFormat, rb->region, 1, 0);
if (mt == NULL)
return;
if (image == NULL)
return;
- mt = intel_miptree_create_for_region(intel, target,
+ mt = intel_miptree_create_for_region(intel, target, image->format,
image->internal_format,
image->region, 1, 0);
if (mt == NULL)