summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorAndre Maasikas <[email protected]>2010-01-22 13:47:31 +0200
committerAndre Maasikas <[email protected]>2010-01-22 13:49:12 +0200
commit9bf40cea00b2f509074bba3ace39c4ffbabdf047 (patch)
treeece435f3fbf740d34f29a3dac2abc80ae4b6fc87 /src/mesa/drivers/dri
parent714d9c21ecc97134a0f9fd58075152acd55cde32 (diff)
r600: fix brownbag, only align if we are dealing with cubemap
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
index 5ea213dc5ff..a1a523931fb 100644
--- a/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
+++ b/src/mesa/drivers/dri/radeon/radeon_mipmap_tree.c
@@ -181,7 +181,7 @@ static void calculate_miptree_layout_r300(radeonContextPtr rmesa, radeon_mipmap_
* we have separate register for 1'st level offset so add
* 2 image alignment after 1'st mip level */
if(rmesa->radeonScreen->chip_family >= CHIP_FAMILY_R600 &&
- level >= 1)
+ mt->target == GL_TEXTURE_CUBE_MAP && level >= 1)
curOffset += 2 * mt->levels[level].size;
}