radv: compute optimal VM alignment for imported buffers
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Dec 2018 14:25:22 +0000 (15:25 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 20 Dec 2018 16:34:04 +0000 (17:34 +0100)
commit5b1ec10e4cf0b5ad3d21172333613f8f090a9a52
tree240cb4b0bbfba8247fbe9fd97576af538d08b589
parent9f0bfbed11f5fc4f3b899b1eb90570dbeeef45c0
radv: compute optimal VM alignment for imported buffers

This fixes GPU hangs on GFX9 with
dEQP-VK.memory.external_memory_host.bind_image_memory_and_render.with_zero_offset.*

Copied from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c