gallium/hud: add support for batch queries