anv/GetQueryPoolResults: Actually implement the spec
The Vulkan spec is fairly clear about when we should and should not write query pool results. We're also supposed to return VK_NOT_READY if VK_QUERY_RESULT_PARTIAL_BIT is not set and we come across any queries which are not yet finished. This fixes rendering corruptions on The Talos Principle where geometry flickers in and out due to bogus query results being returned by the driver. These issues are most noticable on Sky Lake GT4 2hen running on "ultra" settings. Reviewed-By:Lionel Landwerlin <lionel.g.landwerlin@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100182 Cc: "17.0 13.0" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 08df015b) [Andres Gomez: use anv_query.c instead of genX_query.c] Signed-off-by:
Andres Gomez <agomez@igalia.com> Conflicts: src/intel/vulkan/genX_query.c