mesa: Add QueryIsReady driver hook