Mipmaps are generated on CPU. But bilinear filtering happen when you sample texture at rendering time.