radv/gfx9: allocate events from uncached VA space
authorDave Airlie <airlied@redhat.com>
Thu, 7 Sep 2017 03:40:57 +0000 (20:40 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Sep 2017 20:04:54 +0000 (21:04 +0100)
commite8d57802fea60d4b353761ba1bdb08545733c007
treedd9e217b204d03b3d814a65f5d5fa9d0e947303f
parent76ac8fafadca86941f2723f7f7176b22112f5c0c
radv/gfx9: allocate events from uncached VA space

This copies what amdgpu-pro does, and allocates the memory
for an event with an uncached mtype.

This fixes hangs with:
dEQP-VK.api.command_buffers.record_simul_use_primary

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.2" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_radeon_winsys.h
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c