summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_private.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-05-17 11:38:16 -0700
committerJason Ekstrand <[email protected]>2017-05-23 16:46:40 -0700
commitb83b1af6f6936f36db42a8f8b8e0854d0f9491fd (patch)
tree23d6199241167f85e703d372b36239afce2346fa /src/intel/vulkan/anv_private.h
parent00df1cd9d6234cdfc9fb2bf3615196ff83a3c956 (diff)
anv: Make supports_48bit_addresses a heap property
Reviewed-by: Nanley Chery <[email protected]> Cc: "17.1" <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_private.h')
-rw-r--r--src/intel/vulkan/anv_private.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h
index 7efcda3bc6c..c261faa78b8 100644
--- a/src/intel/vulkan/anv_private.h
+++ b/src/intel/vulkan/anv_private.h
@@ -649,6 +649,15 @@ struct anv_memory_type {
VkBufferUsageFlags valid_buffer_usage;
};
+struct anv_memory_heap {
+ /* Standard bits passed on to the client */
+ VkDeviceSize size;
+ VkMemoryHeapFlags flags;
+
+ /* Driver-internal book-keeping */
+ bool supports_48bit_addresses;
+};
+
struct anv_physical_device {
VK_LOADER_DATA _loader_data;
@@ -678,7 +687,7 @@ struct anv_physical_device {
uint32_t type_count;
struct anv_memory_type types[VK_MAX_MEMORY_TYPES];
uint32_t heap_count;
- VkMemoryHeap heaps[VK_MAX_MEMORY_HEAPS];
+ struct anv_memory_heap heaps[VK_MAX_MEMORY_HEAPS];
} memory;
uint8_t pipeline_cache_uuid[VK_UUID_SIZE];