r600g: fix miptree calculations