From 8825d8effe81bdf0ad320b04f01ba29e63772f05 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Mon, 30 Jan 2023 20:11:57 -0600 Subject: [PATCH] nvk: Use f for extension features It's shorter and more ergonamic and the driver is still small so we can pick a reasonable convention before things get out-of-hand. Part-of: --- src/nouveau/vulkan/nvk_physical_device.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/nouveau/vulkan/nvk_physical_device.c b/src/nouveau/vulkan/nvk_physical_device.c index 39e7450e684..617ce2f06f7 100644 --- a/src/nouveau/vulkan/nvk_physical_device.c +++ b/src/nouveau/vulkan/nvk_physical_device.c @@ -93,26 +93,26 @@ nvk_GetPhysicalDeviceFeatures2(VkPhysicalDevice physicalDevice, switch (ext->sType) { case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_4444_FORMATS_FEATURES_EXT: { - VkPhysicalDevice4444FormatsFeaturesEXT *features = (void *)ext; - features->formatA4R4G4B4 = true; - features->formatA4B4G4R4 = true; + VkPhysicalDevice4444FormatsFeaturesEXT *f = (void *)ext; + f->formatA4R4G4B4 = true; + f->formatA4B4G4R4 = true; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_FEATURES_EXT: { - VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *features = (void *)ext; - features->extendedDynamicState = true; + VkPhysicalDeviceExtendedDynamicStateFeaturesEXT *f = (void *)ext; + f->extendedDynamicState = true; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_EXTENDED_DYNAMIC_STATE_2_FEATURES_EXT: { - VkPhysicalDeviceExtendedDynamicState2FeaturesEXT *features = (void *)ext; - features->extendedDynamicState2 = true; - features->extendedDynamicState2LogicOp = true; - features->extendedDynamicState2PatchControlPoints = true; + VkPhysicalDeviceExtendedDynamicState2FeaturesEXT *f = (void *)ext; + f->extendedDynamicState2 = true; + f->extendedDynamicState2LogicOp = true; + f->extendedDynamicState2PatchControlPoints = true; break; } case VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_INPUT_DYNAMIC_STATE_FEATURES_EXT: { - VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT *features = (void *)ext; - features->vertexInputDynamicState = true; + VkPhysicalDeviceVertexInputDynamicStateFeaturesEXT *f = (void *)ext; + f->vertexInputDynamicState = true; break; } /* More feature structs */