radv: Don't expose heaps with 0 memory.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 1 Nov 2017 08:26:48 +0000 (09:26 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 2 Nov 2017 19:28:19 +0000 (20:28 +0100)
commit806721429afa090380bf39a4958fe4e21c63816c
tree7c8a1adcfc3212f396e76baa2d789c4df7069846
parenta29869e8720b385d3692f6a74de2921412b2c8c1
radv: Don't expose heaps with 0 memory.

It confuses CTS. This pregenerates the heap info into the
physical device, so we can use it for translating contiguous
indices into our "standard" ones.

This also makes the WSI a bit smarter in case the first preferred
heap does not exist.

Reviewed-by: Dave Airlie <airlied@redhat.com>
CC: <mesa-stable@lists.freedesktop.org>
src/amd/vulkan/radv_device.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_wsi.c