radv: wait for occlusion queries in the resolve query shader
This is really noticeable for games that resolve a bunch of occlusion queries (in this case 4096) because it seems that emitting 4096 WAIT_REG_MEM packets can stall more than expected. Fixes this by waiting for queries in the resolve query shader. This improves performance of an unreleased game by +~10% (71->78 FPS). RADV should now be really close to Windows performance for that title. Signed-off-by:Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <mesa/mesa!22579>