radeon: Remove copied minimum pitch alignment code.
This is already covered by radeon_mipmap_tree.c, and my convolution cleanups broke in the presence of this code. Thanks to Marek Olšák for tracking down the relevant miptree code for me.
This commit is contained in:
@@ -792,18 +792,6 @@ static void radeon_teximage(
|
||||
|
||||
t->validated = GL_FALSE;
|
||||
|
||||
if (!_mesa_is_format_compressed(texImage->TexFormat)) {
|
||||
GLuint texelBytes = _mesa_get_format_bytes(texImage->TexFormat);
|
||||
/* Minimum pitch of 32 bytes */
|
||||
if (width * texelBytes < 32) {
|
||||
width = 32 / texelBytes;
|
||||
texImage->RowStride = width;
|
||||
}
|
||||
if (!image->mt) {
|
||||
assert(texImage->RowStride == width);
|
||||
}
|
||||
}
|
||||
|
||||
/* Mesa core only clears texImage->Data but not image->mt */
|
||||
radeonFreeTexImageData(ctx, texImage);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user