radv: add GFX9 cache flushing support

Graphics / Mesa 3D Graphics Library / Mesa - Dave Airlie [redhat.com] - 5 June 2017 19:43 EDT

GFX9 needs to write event EOP to a fence buffer, allocate some space for this, and just write an ever increasing number to it, this isn't exactly what radeonsi does, but it seems to work.

c2fbeb7 radv: add GFX9 cache flushing support.
src/amd/vulkan/radv_cmd_buffer.c | 8 ++
src/amd/vulkan/radv_device.c | 3 +
src/amd/vulkan/radv_private.h | 10 ++-
src/amd/vulkan/si_cmd_buffer.c | 175 ++++++++++++++++++++++++++++-----------
4 files changed, 145 insertions(+), 51 deletions(-)

Upstream: cgit.freedesktop.org


  • Share