radv: Invalidate L2 for TRANSFER_WRITE barriers
authorAlex Smith <asmith@feralinteractive.com>
Tue, 21 Mar 2017 17:02:33 +0000 (17:02 +0000)
committerDave Airlie <airlied@redhat.com>
Wed, 22 Mar 2017 23:20:31 +0000 (09:20 +1000)
commitbc5d587a80b64fb3e0a5ea8067e6317fbca2bbc5
tree2440ca1874c90568acd3f44502f0e65693b3e1eb
parentbb32ea4fc6e29986592af50161abc2c2df4ff755
radv: Invalidate L2 for TRANSFER_WRITE barriers

CP DMA and PKT3_WRITE_DATA (in CmdUpdateBuffer) don't (currently) write
through L2. Therefore, to make these writes visible to later accesses
we must invalidate L2 rather than just writing it back, to avoid the
possibility that stale data is read through L2.

Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Alex Smith <asmith@feralinteractive.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c