diff options
author | Zou Nan hai <[email protected]> | 2008-02-28 16:49:38 +0800 |
---|---|---|
committer | Zou Nan hai <[email protected]> | 2008-02-28 16:49:38 +0800 |
commit | 0da03c0aa9ed120fe5ff781a365b503b8ed70e0c (patch) | |
tree | 15dad74a4ca22cfcaaeb17fefc480a1742b5c3fb | |
parent | 60159c1b09c73c19f798035a15d4ef3b434f2fa0 (diff) |
[intel] fix compressed image height
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 3209545adcb..48dcf071317 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 */ |