vk: Implement workaround for occlusion queries
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Jan 2016 19:46:09 +0000 (11:46 -0800)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 12 Jan 2016 19:50:36 +0000 (11:50 -0800)
commitd7a193327b3d121e4a45766b360fcc11d3a56b93
tree13d3fcae5544415cb95934dc1b9a7974ef0e7b16
parent6fc278ae4f888b1b30410910c10d64e22e9224c3
vk: Implement workaround for occlusion queries

We have an issue with occlusion queries (PIPE_CONTROL depth writes)
after using the pipeline with the VS disabled. We work around it by
using a depth cache flush PIPE_CONTROL before doing a depth write.

Fixes dEQP-VK.query_pool.*
src/vulkan/anv_cmd_buffer.c
src/vulkan/anv_meta.c
src/vulkan/anv_private.h
src/vulkan/gen8_cmd_buffer.c