egl/dri2: implement query surface hook