OpenGL mipmaps prevent read

Hi, I have an opencl kernel that reads from a 3d texture, however when i generate mipmaps for the texture, the kernel is unable to read from it. The mipmaps are generated before the texture is assigned to an opencl buffer. Does anyone know why this might be?