zink: query improvements

Mike Blumenkrantz requested to merge zmike/mesa:zink-primgem into master

this more correctly fixes our primitives generated queries based on geometry shader and xfb states. keeping compatibility here is sort of just a disaster, but this passes all the tests (current and with streams later), so at least we shouldn't need to do any more work here

yes, there's still hardcoding of batch counts in some places here, and I'm going to hook up defines for this later, but for now I can guarantee that it's accurate across the driver

Merge request reports