mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02:00
radeon: fix #25463
This is just a workaroung until we properly fix texture mapping in radeonSpanRenderStart
This commit is contained in:
parent
f1900323ea
commit
8413a3aefa
1 changed files with 4 additions and 1 deletions
|
|
@ -436,7 +436,10 @@ static void migrate_image_to_miptree(radeon_mipmap_tree *mt,
|
|||
radeon_bo_unmap(image->mt->bo);
|
||||
|
||||
radeon_miptree_unreference(&image->mt);
|
||||
} else {
|
||||
} else if (image->base.Data) {
|
||||
/* This condition should be removed, it's here to workaround
|
||||
* a segfault when mapping textures during software fallbacks.
|
||||
*/
|
||||
const uint32_t srcrowstride = _mesa_format_row_stride(image->base.TexFormat, image->base.Width);
|
||||
uint32_t rows = image->base.Height * image->base.Depth;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue