radv: fix VK_EXT_memory_budget if one heap isn't available
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Jun 2019 07:44:29 +0000 (09:44 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 12 Jun 2019 13:52:48 +0000 (15:52 +0200)
commitd3781512468aa1c96e92cc6a99963cd0fed80d30
treea81daa12db2ce3fc152ba24c4428659f6c95357c
parent2ef9d2738c8905cb3a83baf14cc1d088786d57e3
radv: fix VK_EXT_memory_budget if one heap isn't available

When the visible VRAM size is equal to the VRAM size only two
heaps are exposed.

This fixes dEQP-VK.api.info.device.memory_budget.

Cc: 19.0 19.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-By: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_device.c