From 0da03c0aa9ed120fe5ff781a365b503b8ed70e0c Mon Sep 17 00:00:00 2001 From: Zou Nan hai Date: Thu, 28 Feb 2008 16:49:38 +0800 Subject: [intel] fix compressed image height --- src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/intel/intel_mipmap_tree.c') diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 3209545..48dcf07 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -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 */ -- cgit v1.1