One less argument to this insanely long function call.
new_mt = intel_miptree_create(intel, image->TexObject->Target,
intel_image->base.TexFormat,
- intel_image->base._BaseFormat,
intel_image->level,
intel_image->level,
intel_image->base.Width,
intel_miptree_create(struct intel_context *intel,
GLenum target,
gl_format format,
- GLenum base_format,
GLuint first_level,
GLuint last_level,
GLuint width0,
{
struct intel_mipmap_tree *mt;
uint32_t tiling = I915_TILING_NONE;
+ GLenum base_format = _mesa_get_format_base_format(format);
if (intel->use_texture_tiling && compress_byte == 0) {
if (intel->gen >= 4 &&
struct intel_mipmap_tree *intel_miptree_create(struct intel_context *intel,
GLenum target,
gl_format format,
- GLenum base_format,
GLuint first_level,
GLuint last_level,
GLuint width0,
return intel_miptree_create(intel,
intelObj->base.Target,
intelImage->base.TexFormat,
- intelImage->base._BaseFormat,
firstLevel,
lastLevel,
width,
intelObj->mt = intel_miptree_create(intel,
intelObj->base.Target,
firstImage->base.TexFormat,
- firstImage->base._BaseFormat,
tObj->BaseLevel,
intelObj->_MaxLevel,
firstImage->base.Width,