The image_h for the tiling algorithm needs to be the padded-to-a-uifblock
height of the level, not the unpadded height or the height of level 0.
Fixes some cases of KHR-GLES3.texture_repeat_mode.* and
depthstencil-render-miplevels.
slice->stride,
trans->map, ptrans->stride,
slice->tiling, rsc->cpp,
- u_minify(rsc->base.height0,
- ptrans->level),
+ slice->size / slice->stride,
&ptrans->box);
}
free(trans->map);
ptrans->box.z * rsc->cube_map_stride,
slice->stride,
slice->tiling, rsc->cpp,
- rsc->base.height0,
+ slice->size / slice->stride,
&ptrans->box);
}
return trans->map;