asahi: Flush USC caches on the first draw
authorAsahi Lina <lina@asahilina.net>
Wed, 22 Feb 2023 11:16:01 +0000 (20:16 +0900)
committerMarge Bot <emma+marge@anholt.net>
Wed, 1 Mar 2023 01:04:29 +0000 (01:04 +0000)
commit494cb2e5cac369e8c2003b18a83d3b92fe6bc044
treeeb84a2868e32ab8713dd16fa5989cdfcf85c13f4
parent70169c7488a8ea26c61e0e6dc14216bbd7152c98
asahi: Flush USC caches on the first draw

It seems that when batches are submitted back to back, the USC can
retain cache contents between them. This causes a problem when the CPU
updates a VBO between batches, since some of those updates might not be
visible to the USC.

Looks like the VDM barrier command with one magic bit set fixes this, so
let's try that.

Signed-off-by: Asahi Lina <lina@asahilina.net>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21538>
src/gallium/drivers/asahi/agx_state.c