glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE) hardware accelerated?

Title says it all…

IIRC glGenerateMipmap() is hardware accelerated…

Thanks!

IIRC, an AMD driver dev told me once that glGenerateMipmap() uses a lot of CPU time - so I’m not sure about that.

“once” : when was that ?

At the beginning of this year. Can’t access old PMs I received - either they’ve been gone when migrating the forum or I’ve mistakenly deleted them.

I don’t know if it is hw accelerated but the question is, if it is not hw accelerated, then what is the point in putting it in GL 1.4? We already have the GLU libraries gluScaleImage and gluBuild2DMipmaps.

“Hardware accelerated” doesn’t necessarily mean “fast” or “low CPU usage”.

In order to generate mipmaps, however it is you do that, you must clear all of the framebuffer caches, then attach the various mipmaps in turn, while rendering with a downscaling shader. Repeatedly, until you run out of mipmaps. A cache flush needs to happen between each one.

It is, for all intents and purposes, a rendering function.