radv: only enable PERFECT_ZPASS_COUNTS for precision occlusion queries

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 6 April 2018 07:07 EDT

This unnecessary when the precision bit flag is not set, and this might hurt performance. The Vulkan explains that not setting
VK_QUERY_CONTROL_PRECISE_BIT might be more efficient on some implementations.

7fe586f6fb radv: only enable PERFECT_ZPASS_COUNTS for precision occlusion queries
src/amd/vulkan/radv_cmd_buffer.c | 4 +++-
src/amd/vulkan/radv_private.h | 1 +
src/amd/vulkan/radv_query.c | 36 +++++++++++++++++++++++++++++++-----
3 files changed, 35 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share