nvk/format: Style fix for VkFormatProperties3KHR
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:12:03 +0000 (20:12 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:02 +0000 (21:32 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/nouveau/vulkan/nvk_format.c

index b719946..c8ac73f 100644 (file)
@@ -160,10 +160,10 @@ nvk_GetPhysicalDeviceFormatProperties2(VkPhysicalDevice physicalDevice,
    vk_foreach_struct(ext, pFormatProperties->pNext) {
       switch (ext->sType) {
       case VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR: {
-         VkFormatProperties3KHR *props = (VkFormatProperties3KHR *)ext;
-         props->linearTilingFeatures = linear2;
-         props->optimalTilingFeatures = optimal2;
-         props->bufferFeatures = buffer2;
+         VkFormatProperties3KHR *p = (void *)ext;
+         p->linearTilingFeatures = linear2;
+         p->optimalTilingFeatures = optimal2;
+         p->bufferFeatures = buffer2;
          break;
       }