We would have done a relayout at validate time, but it's senseless to
store into a miptree if it's going to force relayout.
GLuint level = intelImage->base.Base.Level;
int width, height, depth;
+ if (target_to_target(image->TexObject->Target) != mt->target)
+ return false;
+
if (image->TexFormat != mt->format &&
!(image->TexFormat == MESA_FORMAT_S8_Z24 &&
mt->format == MESA_FORMAT_X8_Z24 &&
*/
if (intelObj->mt &&
(!intel_miptree_match_image(intelObj->mt, &firstImage->base.Base) ||
- intelObj->mt->target != intelObj->base.Target ||
intelObj->mt->first_level != tObj->BaseLevel ||
intelObj->mt->last_level < intelObj->_MaxLevel)) {
intel_miptree_release(&intelObj->mt);