Skip to content

turnip: Fix retrieving query results with the availability flag

Brian Ho requested to merge brkho/mesa:fix-available into master

When I first implemented occlusion queries, I misinterpreted the Vulkan spec; I thought using the VK_QUERY_RESULT_WITH_AVAILABILITY_BIT flag for vkGetQueryPoolResults/vkCmdCopyQueryPoolResults meant that the availability status should overwrite the actual query result.

This incorrect behavior causes the Vulkan CTS to fail on dEQP-VK.query_pool.*_with_availability tests. This patch series updates turnip to the correct behavior of writing a separate available result in addition to the query results when using VK_QUERY_RESULT_WITH_AVAILABILITY_BIT.

Merge request reports