Mesa (main): venus: use updated tokens from vk.xml

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jul 12 16:27:08 UTC 2022


Module: Mesa
Branch: main
Commit: 75938f9d1f305f799987d10ba22bca2ff598ec3d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75938f9d1f305f799987d10ba22bca2ff598ec3d

Author: Eric Engestrom <eric at igalia.com>
Date:   Fri Jul  1 13:06:18 2022 +0100

venus: use updated tokens from vk.xml

Signed-off-by: Eric Engestrom <eric at igalia.com>
Reviewed-by: Yiwei Zhang <zzyiwei at chromium.org>
Acked-by: Jason Ekstrand <jason.ekstrand at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17342>

---

 src/virtio/vulkan/vn_physical_device.c | 14 +++++++-------
 src/virtio/vulkan/vn_physical_device.h |  2 +-
 src/vulkan/registry/update-aliases.py  |  1 +
 3 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/virtio/vulkan/vn_physical_device.c b/src/virtio/vulkan/vn_physical_device.c
index 2dc2e4f3df8..68045cda078 100644
--- a/src/virtio/vulkan/vn_physical_device.c
+++ b/src/virtio/vulkan/vn_physical_device.c
@@ -719,7 +719,7 @@ vn_physical_device_init_properties(struct vn_physical_device *physical_dev)
    snprintf(vk12_props->driverName, sizeof(vk12_props->driverName), "venus");
    snprintf(vk12_props->driverInfo, sizeof(vk12_props->driverInfo),
             "Mesa " PACKAGE_VERSION MESA_GIT_SHA1);
-   vk12_props->conformanceVersion = (VkConformanceVersionKHR){
+   vk12_props->conformanceVersion = (VkConformanceVersion){
       .major = 1,
       .minor = 2,
       .subminor = 7,
@@ -1624,7 +1624,7 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
       VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *extended_dynamic_state;
       VkPhysicalDeviceExtendedDynamicState2FeaturesEXT
          *extended_dynamic_state2;
-      VkPhysicalDeviceImageRobustnessFeaturesEXT *image_robustness;
+      VkPhysicalDeviceImageRobustnessFeatures *image_robustness;
       VkPhysicalDeviceInlineUniformBlockFeatures *inline_uniform_block;
       VkPhysicalDeviceMaintenance4Features *maintenance4;
       VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures
@@ -1811,7 +1811,7 @@ vn_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice,
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT:
          *u.extended_dynamic_state2 = feats->extended_dynamic_state_2;
          break;
-      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES_EXT:
+      case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_ROBUSTNESS_FEATURES:
          *u.image_robustness = feats->image_robustness;
          break;
       case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_INLINE_UNIFORM_BLOCK_FEATURES:
@@ -1910,7 +1910,7 @@ vn_GetPhysicalDeviceProperties2(VkPhysicalDevice physicalDevice,
       VkPhysicalDevicePresentationPropertiesANDROID *presentation_properties;
       VkPhysicalDeviceProvokingVertexPropertiesEXT *provoking_vertex;
       VkPhysicalDeviceRobustness2PropertiesEXT *robustness_2;
-      VkPhysicalDeviceMaintenance4PropertiesKHR *maintenance4;
+      VkPhysicalDeviceMaintenance4Properties *maintenance4;
       VkPhysicalDeviceTransformFeedbackPropertiesEXT *transform_feedback;
       VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT
          *vertex_attribute_divisor;
@@ -2260,7 +2260,7 @@ vn_physical_device_fix_image_format_info(
          memcpy(&local_info->list, src, sizeof(local_info->list));
          pnext = &local_info->list;
          break;
-      case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO_EXT:
+      case VK_STRUCTURE_TYPE_IMAGE_STENCIL_USAGE_CREATE_INFO:
          memcpy(&local_info->stencil_usage, src,
                 sizeof(local_info->stencil_usage));
          pnext = &local_info->stencil_usage;
@@ -2533,8 +2533,8 @@ vn_GetPhysicalDeviceExternalSemaphoreProperties(
    struct vn_physical_device *physical_dev =
       vn_physical_device_from_handle(physicalDevice);
 
-   const VkSemaphoreTypeCreateInfoKHR *type_info = vk_find_struct_const(
-      pExternalSemaphoreInfo->pNext, SEMAPHORE_TYPE_CREATE_INFO_KHR);
+   const VkSemaphoreTypeCreateInfo *type_info = vk_find_struct_const(
+      pExternalSemaphoreInfo->pNext, SEMAPHORE_TYPE_CREATE_INFO);
    const VkSemaphoreType sem_type =
       type_info ? type_info->semaphoreType : VK_SEMAPHORE_TYPE_BINARY;
    const VkExternalSemaphoreHandleTypeFlags valid_handles =
diff --git a/src/virtio/vulkan/vn_physical_device.h b/src/virtio/vulkan/vn_physical_device.h
index 8fa4ddc683e..ccd12a00fed 100644
--- a/src/virtio/vulkan/vn_physical_device.h
+++ b/src/virtio/vulkan/vn_physical_device.h
@@ -26,7 +26,7 @@ struct vn_physical_device_features {
    VkPhysicalDevice4444FormatsFeaturesEXT argb_4444_formats;
    VkPhysicalDeviceExtendedDynamicStateFeaturesEXT extended_dynamic_state;
    VkPhysicalDeviceExtendedDynamicState2FeaturesEXT extended_dynamic_state_2;
-   VkPhysicalDeviceImageRobustnessFeaturesEXT image_robustness;
+   VkPhysicalDeviceImageRobustnessFeatures image_robustness;
    VkPhysicalDeviceInlineUniformBlockFeatures inline_uniform_block;
    VkPhysicalDeviceMaintenance4Features maintenance4;
    VkPhysicalDeviceShaderDemoteToHelperInvocationFeatures
diff --git a/src/vulkan/registry/update-aliases.py b/src/vulkan/registry/update-aliases.py
index 17af785c8a6..382893dd9e0 100755
--- a/src/vulkan/registry/update-aliases.py
+++ b/src/vulkan/registry/update-aliases.py
@@ -19,6 +19,7 @@ EXCLUDE_PATHS = [
     # These files come from other repos, there's no point checking and
     # fixing them here as that would be overwritten in the next sync.
     'src/amd/vulkan/radix_sort/',
+    'src/virtio/venus-protocol/',
 ]
 
 



More information about the mesa-commit mailing list