Skip to content

anv: Properly fetch partial results in vkGetQueryPoolResults

What does this MR do and why?

anv: Properly fetch partial results in vkGetQueryPoolResults

Currently for an "unavailable" query, if VK_QUERY_RESULT_PARTIAL_BIT is set, anv will return (slot.end - slot.begin). This can cause underflow because slot.end might still be at the initial value of 0.

This commit fixes the issue by returning 0 in that situation.

Merge request reports