radv: fix waiting for occlusion queries on GFX6-8
Occlusion queries don't go through L2 on GFX6-8, and waiting properly in shaders is more complicated to implement. Use the previous WAIT_REG_MEM logic on these GPUs to fix this. This fixes flickering on many games on GFX8. Closes: mesa/mesa#8954 Closes: mesa/mesa#9415 Fixes: d44651bf ("radv: wait for occlusion queries in the resolve query shader") Signed-off-by:Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <mesa/mesa!28796>