The ARB_texture_query_lod extension spec talks about a function textureQueryLOD, and the GLSL 4.00 spec talks about a similar function called textureQueryLod.(note the difference in CapiTALizatIOn).
I’m using Catalyst 10.6 on AMD64 Ubuntu.
These drivers claim to support Opengl 4.0 but if I try to use a shader with #version 400 that calls textureQueryLod I get shader compiler errors and the shader info log says
“No matching overloaded function found textureQueryLod”.
On the other hand if I use #extension GL_ARB_texture_query_lod and textureQueryLOD, everything appears to work fine.