[intel] fix compressed image height

This commit is contained in:
Zou Nan hai
2008-02-28 16:49:38 +08:00
parent 60159c1b09
commit 0da03c0aa9
@@ -420,7 +420,7 @@ intel_miptree_image_data(struct intel_context *intel,
for (i = 0; i < depth; i++) {
height = dst->level[level].height;
if(dst->compressed)
height /= 4;
height = (height + 3) / 4;
intel_region_data(intel,
dst->region,
dst_offset + dst_depth_offset[i] * dst->cpp, /* dst_offset */