diff --git a/src/gallium/drivers/r300/r300_texture_desc.c b/src/gallium/drivers/r300/r300_texture_desc.c index 773490a517c..58b3f8a0f99 100644 --- a/src/gallium/drivers/r300/r300_texture_desc.c +++ b/src/gallium/drivers/r300/r300_texture_desc.c @@ -140,7 +140,9 @@ static unsigned r300_texture_get_stride(struct r300_screen *screen, /* NPOT textures use stride addressing (TX_PITCH_EN). Keep macro-tiled * strides at an even number of macro tiles in X to prevent flakes. */ - if (tex->tex.macrotile[level] && tex->tex.uses_stride_addressing) { + if (tex->b.target != PIPE_TEXTURE_3D && + tex->tex.macrotile[level] && + tex->tex.uses_stride_addressing) { width = align(width, tile_width * 2); }