mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
radeon: fix mipmap_limits crasher.
This gets the correct srclvl image map when uploading images to the new mipmap.
This commit is contained in:
parent
db63f63897
commit
18b3cbcede
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue