ARB_occlusion_query: Requres hardware support, as it reports back not only a true/false flag, but the actual number of pixels/samples that would be drawn for a given set of primitives (!). This seems to be actually supported in current Nvidia hardware (dunno about ATI); it doesn't look like it is possible to implement very efficiently in deferred renderers.