diff options
author | Bas Nieuwenhuizen <[email protected]> | 2017-11-01 09:26:48 +0100 |
---|---|---|
committer | Bas Nieuwenhuizen <[email protected]> | 2017-11-02 20:28:19 +0100 |
commit | 806721429afa090380bf39a4958fe4e21c63816c (patch) | |
tree | 7c8a1adcfc3212f396e76baa2d789c4df7069846 /src/amd/vulkan/radv_private.h | |
parent | a29869e8720b385d3692f6a74de2921412b2c8c1 (diff) |
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 <[email protected]>
CC: <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_private.h')
-rw-r--r-- | src/amd/vulkan/radv_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 56ea35eab19..83965b41b27 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -282,6 +282,9 @@ struct radv_physical_device { * the pipeline cache defined by apps. */ struct disk_cache * disk_cache; + + VkPhysicalDeviceMemoryProperties memory_properties; + enum radv_mem_type mem_type_indices[RADV_MEM_TYPE_COUNT]; }; struct radv_instance { |