mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 23:58:16 +02:00
radeon: revert unneeded change to texturing code
This commit is contained in:
parent
9fd8da299b
commit
ed8340192e
1 changed files with 8 additions and 3 deletions
|
|
@ -511,11 +511,8 @@ static void radeon_teximage(
|
|||
int size;
|
||||
if (texImage->IsCompressed) {
|
||||
size = texImage->CompressedSize;
|
||||
dstRowStride =
|
||||
_mesa_compressed_row_stride(texImage->TexFormat->MesaFormat, width);
|
||||
} else {
|
||||
size = texImage->Width * texImage->Height * texImage->Depth * texImage->TexFormat->TexelBytes;
|
||||
dstRowStride = postConvWidth * texelBytes;
|
||||
}
|
||||
texImage->Data = _mesa_alloc_texmemory(size);
|
||||
}
|
||||
|
|
@ -536,6 +533,14 @@ static void radeon_teximage(
|
|||
if (compressed) {
|
||||
memcpy(texImage->Data, pixels, imageSize);
|
||||
} else {
|
||||
GLuint dstRowStride;
|
||||
if (image->mt) {
|
||||
radeon_mipmap_level *lvl = &image->mt->levels[image->mtlevel];
|
||||
dstRowStride = lvl->rowstride;
|
||||
} else {
|
||||
dstRowStride = texImage->Width * texImage->TexFormat->TexelBytes;
|
||||
}
|
||||
|
||||
if (!texImage->TexFormat->StoreImage(ctx, dims,
|
||||
texImage->_BaseFormat,
|
||||
texImage->TexFormat,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue