diff options
author | Samuel Pitoiset <[email protected]> | 2018-04-05 10:27:22 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2018-04-06 09:07:34 +0200 |
commit | 7fe586f6fb69cd829d687dd58562ef5922667905 (patch) | |
tree | c1f5b234960d3812ff4f0a563f0611fb6f658204 /src/amd/vulkan/radv_private.h | |
parent | d53dff3bfced4cf573c558ca8873af63a66cd014 (diff) |
radv: only enable PERFECT_ZPASS_COUNTS for precision occlusion queries
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.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index ca3beba2d41..9e655af844e 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -946,6 +946,7 @@ struct radv_cmd_state { uint32_t last_primitive_reset_index; enum radv_cmd_flush_bits flush_bits; unsigned active_occlusion_queries; + bool perfect_occlusion_queries_enabled; float offset_scale; uint32_t trace_id; uint32_t last_ia_multi_vgt_param; |