From 3924df9fe7bbacba6066e4b8482077abe4db0bfc Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Wed, 28 Jul 2021 14:57:51 +0300 Subject: [PATCH] anv: enable VK_KHR_maintenance4 v2 (Jason Ekstrand): - Get maxBufferSize from ISL. Signed-off-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_device.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index dd8a49138e4..bc1f9b3b13d 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -200,6 +200,7 @@ get_device_extensions(const struct anv_physical_device *device, .KHR_maintenance1 = true, .KHR_maintenance2 = true, .KHR_maintenance3 = true, + .KHR_maintenance4 = true, .KHR_multiview = true, .KHR_performance_query = device->use_softpin && device->perf && @@ -1547,6 +1548,13 @@ void anv_GetPhysicalDeviceFeatures2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_FEATURES_KHR: { + VkPhysicalDeviceMaintenance4FeaturesKHR *features = + (VkPhysicalDeviceMaintenance4FeaturesKHR *)ext; + features->maintenance4 = true; + break; + } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PERFORMANCE_QUERY_FEATURES_KHR: { VkPhysicalDevicePerformanceQueryFeaturesKHR *feature = (VkPhysicalDevicePerformanceQueryFeaturesKHR *)ext; @@ -2264,6 +2272,13 @@ void anv_GetPhysicalDeviceProperties2( break; } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_MAINTENANCE_4_PROPERTIES_KHR: { + VkPhysicalDeviceMaintenance4PropertiesKHR *properties = + (VkPhysicalDeviceMaintenance4PropertiesKHR *)ext; + properties->maxBufferSize = pdevice->isl_dev.max_buffer_size; + break; + } + case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PCI_BUS_INFO_PROPERTIES_EXT: { VkPhysicalDevicePCIBusInfoPropertiesEXT *properties = (VkPhysicalDevicePCIBusInfoPropertiesEXT *)ext;