summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2009-06-09 13:52:58 +1000
committerDave Airlie <[email protected]>2009-06-09 13:52:58 +1000
commit18b3cbcede292ce7b90b818b6abb064869072ff3 (patch)
treeca5cfd5ae16c4d2bd0f6380ff4e35c528757b081 /src
parentdb63f638974f90557a52c66b0f2e9d5a92e697d0 (diff)
radeon: fix mipmap_limits crasher.
This gets the correct srclvl image map when uploading images to the new mipmap.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_texture.c b/src/mesa/drivers/dri/radeon/radeon_texture.c
index 564da19f58e..0d87f152e99 100644
--- a/src/mesa/drivers/dri/radeon/radeon_texture.c
+++ b/src/mesa/drivers/dri/radeon/radeon_texture.c
@@ -830,7 +830,7 @@ static void migrate_image_to_miptree(radeon_mipmap_tree *mt, radeon_texture_imag
* In fact, that memcpy() could be done by the hardware in many
* cases, provided that we have a proper memory manager.
*/
- radeon_mipmap_level *srclvl = &image->mt->levels[image->mtlevel];
+ radeon_mipmap_level *srclvl = &image->mt->levels[image->mtlevel-image->mt->firstLevel];
assert(srclvl->size == dstlvl->size);
assert(srclvl->rowstride == dstlvl->rowstride);