anv/formats: Rename ambiguous func parameter
authorChad Versace <chad.versace@intel.com>
Sat, 23 Jan 2016 01:51:24 +0000 (17:51 -0800)
committerChad Versace <chad.versace@intel.com>
Sat, 23 Jan 2016 01:51:24 +0000 (17:51 -0800)
vkGetPhysicalDeviceImageFormatProperties has multiple 'flags'
parameters.

src/vulkan/anv_formats.c

index 8d634ca85f2557bafa7a63aa57e20920484a776f..1f735a4dcd2070c975bae12f64aee458cc3444c0 100644 (file)
@@ -420,7 +420,7 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties(
     VkImageType                                 type,
     VkImageTiling                               tiling,
     VkImageUsageFlags                           usage,
-    VkImageCreateFlags                          flags,
+    VkImageCreateFlags                          createFlags,
     VkImageFormatProperties*                    pImageFormatProperties)
 {
    ANV_FROM_HANDLE(anv_physical_device, physical_device, physicalDevice);
@@ -479,7 +479,7 @@ VkResult anv_GetPhysicalDeviceImageFormatProperties(
        type == VK_IMAGE_TYPE_2D &&
        (format_feature_flags & (VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT |
                                 VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT)) &&
-       !(flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT) &&
+       !(createFlags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT) &&
        !(usage & VK_IMAGE_USAGE_STORAGE_BIT)) {
       sampleCounts = isl_device_get_sample_counts(&physical_device->isl_dev);
    }