anv: Do an end-of-pipe sync before updating AUX table entries
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 17 Mar 2020 03:58:53 +0000 (22:58 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 17 Mar 2020 16:38:50 +0000 (16:38 +0000)
commitd60375cbc2510ab7ad90b2654c0f6324468415cf
treef32a11bbe5366bd2c2561b2ce921d01a0d2481e1
parent3dd0d12aa5fefa94123269a541c94cdf57599e34
anv: Do an end-of-pipe sync before updating AUX table entries

We've found in GL that an actual end-of-pipe sync is required before
invalidating the aux tables and that a simple CS stall is insufficient.
If we're about to modify the actual AUX table entries from the GPU, we
should definitely make sure it's stopped dead before we do so.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4206>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4206>
src/intel/vulkan/genX_cmd_buffer.c