Skip to content
Snippets Groups Projects
Commit 9c6fcdfe authored by Faith Ekstrand's avatar Faith Ekstrand :speech_balloon: Committed by Andres Gomez
Browse files

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: default avatarLionel 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: default avatarAndres Gomez <agomez@igalia.com>

Conflicts:
	src/intel/vulkan/genX_query.c
parent 6e2fb0cb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment