[Bug 32277] overflow in calculate_miptree_layout_r300