radv: Emit enqueued pipeline barriers on event write.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 23 Oct 2018 08:54:24 +0000 (10:54 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 25 Oct 2018 14:17:54 +0000 (16:17 +0200)
commitd41c3cc01314fd2586ad2392a05647197d04c28d
treea41ba6ce58432f50a0dfc288af847b7f4695d428
parent9d40ec2cf6ec6d3d9d78deead9f334523843fa48
radv: Emit enqueued pipeline barriers on event write.

Since the CPU can read them we need to execute any GPU->CPU
flushes before the event is written.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108524
Fixes: f4e499ec791 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/amd/vulkan/radv_cmd_buffer.c