anv: Improve BTI change cache flushing
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 23 Jan 2020 04:37:10 +0000 (22:37 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 19:18:26 +0000 (19:18 +0000)
commitc70a786c77370bbc47f71a9f529d50116fd511da
tree1e2202f681fc20948b02f1583aa3e2d974dea182
parente39c52787e89225343032fecd628988f39d9b442
anv: Improve BTI change cache flushing

This commit makes two changes:

 1. We set pending_pipe_bits instead of emitting PIPE_CONTROL directly
    for the flush at the end of cmd_buffer_begin_subpass.

 2. Because BLORP ops such as vkCmdClearAttachments may come in the
    middle of a render pass, we have to also flag the need for a cache
    flush after the blorp op.

Fixes: 185630c6bc97 "anv/blorp: Do the gen11 BTI flush"
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3547>
src/intel/vulkan/genX_blorp_exec.c
src/intel/vulkan/genX_cmd_buffer.c